File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -732,7 +732,7 @@ def add_js_link(self, js_link):
732
732
script.src = "%s";
733
733
script.defer;
734
734
script.crossorigin = "anonymous";
735
- script.onload = function() {$("html") };
735
+ script.onload = function() { null };
736
736
head.appendChild(script);
737
737
}
738
738
injectJS();""" )
@@ -755,7 +755,7 @@ def add_js_code_from_link(self, js_link):
755
755
'''var h = document.getElementsByTagName('head').item(0);'''
756
756
'''var s = document.createElement("script");'''
757
757
'''s.type = "text/javascript";'''
758
- '''s.onload = function() {$("html") };'''
758
+ '''s.onload = function() { null };'''
759
759
'''s.appendChild(document.createTextNode("%s"));'''
760
760
'''h.appendChild(s);''' )
761
761
self .execute_script (add_js_code_script % re .escape (js_code ))
You can’t perform that action at this time.
0 commit comments