We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7993f46 commit db18c27Copy full SHA for db18c27
src/content/staticNS.js
@@ -119,7 +119,7 @@ const FILE_OR_FTP = /^(?:file|ftp):$/.test(location.protocol);
119
}
120
debug(`Synchronously fetching policy for ${url}.`);
121
let policy = null;
122
- let attempts = 100;
+ let attempts = document.readyState == "loading" ? 100 : 1;
123
let refetch = () => {
124
try {
125
policy = browser.runtime.sendSyncMessage(msg) || this.domPolicy;
0 commit comments