Commit 6815616a authored by Dave Vandyke's avatar Dave Vandyke 🐈 Committed by Thomas Greiner

Issue 7327 - Update showOptions calls to use Promises

parent c7fb8f28
Pipeline #51634298 passed with stages
in 8 minutes and 58 seconds
......@@ -453,13 +453,12 @@
};
modules.options = {
showOptions(callback)
showOptions()
{
if (!/\/(?:mobile|desktop)-options\.html\b/.test(top.location.href))
window.open("desktop-options.html", "_blank");
if (callback)
callback();
return Promise.resolve();
}
};
......
......@@ -270,7 +270,7 @@
{
if (message.what == "options")
{
showOptions(() =>
showOptions().then(() =>
{
if (!message.action)
return;
......@@ -452,7 +452,7 @@
if ("homepage" in message)
subscription.homepage = message.homepage;
showOptions(() =>
showOptions().then(() =>
{
sendMessage("app", "addSubscription", subscription);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment