diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 12:07:57 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-15 12:07:57 +0200 |
commit | ea2f88b936b8c5b9e84023712a70c44d2cce7f4b (patch) | |
tree | 8191b41afbe8c1ef8738e4f2afa5a3156f44685e /application | |
parent | 94730c6508e83e6209139f768a7a3e27bcd1e358 (diff) | |
download | uxp-ea2f88b936b8c5b9e84023712a70c44d2cce7f4b.tar.gz |
Maybe fix openLocation.js (to Promise)
Issue mcp-graveyard/UXP#121
Diffstat (limited to 'application')
-rw-r--r-- | application/palemoon/base/content/openLocation.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/application/palemoon/base/content/openLocation.js b/application/palemoon/base/content/openLocation.js index b00dbc5715..80d5429549 100644 --- a/application/palemoon/base/content/openLocation.js +++ b/application/palemoon/base/content/openLocation.js @@ -62,13 +62,12 @@ function doEnabling() function open() { - Task.spawn(function() { + getShortcutOrURIAndPostData(dialog.input.value).then(data => { let url; let postData = null; let mayInheritPrincipal = false; if (browser) { - let data = yield browser.getShortcutOrURIAndPostData(dialog.input.value); url = data.url; postData = data.postData; mayInheritPrincipal = data.mayInheritPrincipal; |