summaryrefslogtreecommitdiff
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
commitea2f88b936b8c5b9e84023712a70c44d2cce7f4b (patch)
tree8191b41afbe8c1ef8738e4f2afa5a3156f44685e /application
parent94730c6508e83e6209139f768a7a3e27bcd1e358 (diff)
downloaduxp-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.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 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;