[Android] Fixed regression preventing NoScript prompts from being shown.

This commit is contained in:
hackademix 2023-07-19 22:39:06 +02:00
parent f6ece0ebb7
commit 45861afeaa
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ var Prompts = (() => {
async open(data) {
promptData = data;
this.close();
let {width, height, left, top, parent = await browser.windows.getCurrent() } = data.features;
let {width, height, left, top, parent } = data.features;
let options = {
url: browser.runtime.getURL("ui/prompt.html"),
type: "popup",
@ -52,7 +52,7 @@ var Prompts = (() => {
this.currentTab = await browser.tabs.create({url: options.url});
return;
}
if (!parent) parent = await browser.windows.getCurrent()
let popup = this.currentWindow = await browser.windows.create(options);
if (parent) {