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