summaryrefslogtreecommitdiff
path: root/src/ui/Prompts.js
diff options
context:
space:
mode:
authorhackademix2019-03-27 23:43:34 +0100
committerhackademix2019-03-27 23:43:34 +0100
commitb9373c65b112342a519cb932fdebfd68a3cd174d (patch)
treec7da79232c02645389ae00d3ddbc59c0919ae0be /src/ui/Prompts.js
parentd77df5c9e433a2e08f1e66ded36beca5e17deff3 (diff)
parent0878ad2b0a0d3af5db66cc6a4f7d882e17a13365 (diff)
downloadnoscript-b9373c65b112342a519cb932fdebfd68a3cd174d.tar.gz
noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.tar.xz
noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.zip
Merge branch 'chromium' into merge/chromium
Diffstat (limited to 'src/ui/Prompts.js')
-rw-r--r--src/ui/Prompts.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/Prompts.js b/src/ui/Prompts.js
index 03ea9ee..ed83ac2 100644
--- a/src/ui/Prompts.js
+++ b/src/ui/Prompts.js
@@ -7,14 +7,16 @@ var Prompts = (() => {
async open(data) {
promptData = data;
this.close();
- this.currentWindow = await browser.windows.create({
+ let options = {
url: browser.extension.getURL("ui/prompt.html"),
type: "panel",
- allowScriptsToClose: true,
- // titlePreface: "NoScript ",
width: data.features.width,
height: data.features.height,
- });
+ };
+ if (UA.isMozilla) {
+ options.allowScriptsToClose = true;
+ }
+ this.currentWindow = await browser.windows.create(options);
}
async close() {
if (this.currentWindow) {