This commit is contained in:
Boik 2017-09-17 14:09:12 +08:00
parent d86724f17a
commit 16499358b3

View file

@ -31,13 +31,13 @@ const runStylesheet = function (url, code) {
document.head.append(styleElement);
}
document.addEventListener('DOMContentLoaded', init);
})`;
})`
const compiledWrapper = runInThisContext(wrapper, {
filename: url,
lineOffset: 1,
displayErrors: true,
});
return compiledWrapper.call(this, code);
displayErrors: true
})
return compiledWrapper.call(this, code)
}
// Run injected scripts.