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 | cfa5951ea85357e119f397524710320a8aa85e83 (patch) | |
tree | 8191b41afbe8c1ef8738e4f2afa5a3156f44685e /application/palemoon/base/content | |
parent | cebd1e72e28b58881fbcccfb48a43ce47a6b01a4 (diff) | |
download | UXP-cfa5951ea85357e119f397524710320a8aa85e83.tar UXP-cfa5951ea85357e119f397524710320a8aa85e83.tar.gz UXP-cfa5951ea85357e119f397524710320a8aa85e83.tar.lz UXP-cfa5951ea85357e119f397524710320a8aa85e83.tar.xz UXP-cfa5951ea85357e119f397524710320a8aa85e83.zip |
Maybe fix openLocation.js (to Promise)
Issue #121
Diffstat (limited to 'application/palemoon/base/content')
-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 b00dbc571..80d542954 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; |