250 |
250 |
251 for script in self.__endScripts: |
251 for script in self.__endScripts: |
252 if script.match(urlString): |
252 if script.match(urlString): |
253 javascript = 'window.addEventListener("DOMContentLoaded",' \ |
253 javascript = 'window.addEventListener("DOMContentLoaded",' \ |
254 'function(e) {{ {0} }}, false);'.format( |
254 'function(e) {{ {0} }}, false);'.format( |
255 bootstrap_js + script.script()) |
255 bootstrap_js + script.script()) |
256 frame.evaluateJavaScript(javascript) |
256 frame.evaluateJavaScript(javascript) |
257 |
257 |
258 def __load(self): |
258 def __load(self): |
259 """ |
259 """ |
260 Private slot to load the available scripts into the manager. |
260 Private slot to load the available scripts into the manager. |