aboutsummaryrefslogtreecommitdiffstats
path: root/platform/firefox/frameModule.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/firefox/frameModule.js')
-rw-r--r--platform/firefox/frameModule.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js
index 9e1c444..f33154c 100644
--- a/platform/firefox/frameModule.js
+++ b/platform/firefox/frameModule.js
@@ -299,7 +299,11 @@ const contentObserver = {
}
};
- doc.addEventListener('DOMContentLoaded', docReady, true);
+ if ( doc.readyState === 'loading') {
+ doc.addEventListener('DOMContentLoaded', docReady, true);
+ } else {
+ docReady({ target: doc, type: 'DOMContentLoaded' });
+ }
}
};