summaryrefslogtreecommitdiff
path: root/src/content/onScriptDisabled.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/onScriptDisabled.js')
-rw-r--r--src/content/onScriptDisabled.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js
index c0d5899..6083466 100644
--- a/src/content/onScriptDisabled.js
+++ b/src/content/onScriptDisabled.js
@@ -15,7 +15,7 @@ function onScriptDisabled() {
if (refresh) {
let html = document.documentElement.outerHTML;
window.addEventListener("load", e => {
- let document = window.wrappedJSObject.document;
+ let document = window.wrappedJSObject ? window.wrappedJSObject.document : window.document;
document.open();
document.write(html);
document.close();