summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 12:07:57 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 12:07:57 +0200
commitcfa5951ea85357e119f397524710320a8aa85e83 (patch)
tree8191b41afbe8c1ef8738e4f2afa5a3156f44685e /application
parentcebd1e72e28b58881fbcccfb48a43ce47a6b01a4 (diff)
downloadUXP-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')
-rw-r--r--application/palemoon/base/content/openLocation.js3
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;