mirror of https://github.com/gorhill/uBlock.git
Use document.append() only when there are no elements in the DOM, as a document instance can't have more than one direct child.
This commit is contained in:
parent
d5804dce7f
commit
9134c11cf8
|
@ -315,7 +315,7 @@ vAPI.scriptletsInjector = ((doc, details) => {
|
|||
script = doc.createElement('script');
|
||||
script.async = false;
|
||||
script.src = url;
|
||||
doc.append(script);
|
||||
(doc.head || doc.documentElement || doc).append(script);
|
||||
self.uBO_scriptletsInjected = details.filters;
|
||||
} catch (ex) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue