From cd3743d6f2765e39b5215b44dc7cbfea84ebae3c Mon Sep 17 00:00:00 2001 From: fx4waldi Date: Wed, 21 Feb 2018 22:16:20 +0100 Subject: [PATCH] Version 1.7.2 --- src/bg.js | 4 ++-- src/changelog.js | 4 ++++ src/manifest.json | 2 +- src/shared.js | 8 +++++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/bg.js b/src/bg.js index e43308c..19f7218 100644 --- a/src/bg.js +++ b/src/bg.js @@ -143,7 +143,7 @@ function run(m){ if(m.openSites)openSite("webpagesScannertrue"); if(m.addToContextMenu!=undefined)showContext(m.addToContextMenu); if(m.period)browser.alarms.create("webpageScanner",{periodInMinutes:m.period}); - if(m.openSitesDelay){delayCurrentId=0;delayTime=m.openSitesDelay;delayLinksId=m.linksId;openWindow=-1;openSitesDelay(m.openWindow);} + if(m.openSitesDelay){delayCurrentId=0;delayTime=m.openSitesDelay;delayLinksId=m.linksId;lastWindowId=-1;openSitesDelay(m.openWindow);} } function showContext(e){ @@ -271,6 +271,6 @@ function openSitesDelay(openWindow){ } }else{ delayLinksId=[]; - openWindow=-1; + lastWindowId=-1; } } diff --git a/src/changelog.js b/src/changelog.js index 692cf28..8e3d609 100644 --- a/src/changelog.js +++ b/src/changelog.js @@ -1,4 +1,8 @@ let changelog=`[ + {"version":"1.7.2", + "changes":["Fixed major bug"], + "changesPL":["Naprawiono poważny błąd"] + }, {"version":"1.7.1", "changes":["Added possibility to set the delay in the opening pages in new tabs","Minor changes","Fixed bugs"], "changesPL":["Dodano możliwość ustawienia opóźnienia w otwieraniu stron w nowych kartach","Drobne zmiany","Naprawiono błędy"] diff --git a/src/manifest.json b/src/manifest.json index 7ea08a2..5c4600d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", - "version": "1.7.1", + "version": "1.7.2", "default_locale": "en", "icons": { "48": "icons/icon.svg", diff --git a/src/shared.js b/src/shared.js index 3e99c4f..5f7e3bb 100644 --- a/src/shared.js +++ b/src/shared.js @@ -278,7 +278,13 @@ function openSite(ev){ }); if(ixs.length){ if(settings.delay){ - browser.runtime.sendMessage({"openSitesDelay":1,"linksId":ixs,"openWindow":(settings.openWindow&&ixs.length>settings.openWindowMore)}); + browser.runtime.sendMessage({"openSitesDelay":settings.delay*1,"linksId":ixs,"openWindow":(settings.openWindow&&ixs.length>settings.openWindowMore)}).then(()=>{},()=>{ + delayCurrentId=0; + delayTime=settings.delay*1; + delayLinksId=ixs; + lastWindowId=-1; + openSitesDelay(settings.openWindow&&ixs.length>settings.openWindowMore); + }); }else{ if(settings.openWindow&&ixs.length>settings.openWindowMore){ browser.windows.create({