mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Add parent checking before inserting or removing the child
This commit is contained in:
@@ -43,7 +43,10 @@ bszCaller = {
|
||||
return function (t) {
|
||||
ready(function () {
|
||||
try {
|
||||
e(t), scriptTag && scriptTag.parentElement && scriptTag.parentElement.removeChild && scriptTag.parentElement.removeChild(scriptTag)
|
||||
e(t)
|
||||
if (scriptTag && scriptTag.parentElement && scriptTag.parentElement.contains(scriptTag)) {
|
||||
scriptTag.parentElement.removeChild(scriptTag)
|
||||
}
|
||||
} catch (t) {
|
||||
// console.log(t), bszTag.hides()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user