mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue