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 4b837ac commit 1c6af76Copy full SHA for 1c6af76
src/bg/RequestGuard.js
@@ -334,6 +334,7 @@
334
}
335
options.push({label: _("allowLocal", origin)});
336
337
+ const OPT_COLLAPSE = options.length;
338
options.push({label: _("CollapseBlockedObjects")});
339
let t = u => `${TAG}@${u}`;
340
let ret = await Prompts.prompt({
@@ -342,7 +343,7 @@
342
343
options});
344
debug(`Prompt returned`, ret, sender); // DEV_ONLY
345
if (ret.button !== 0) return;
- if (ret.option === 2) {
346
+ if (ret.option === OPT_COLLAPSE) {
347
return {collapse: "all"};
348
349
let key = [siteKey, origin][ret.option || 0];
0 commit comments