[Android] Fixed regression preventing NoScript prompts from being shown.
This commit is contained in:
parent
f6ece0ebb7
commit
45861afeaa
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue