Skip to content

Commit

Permalink
Version 1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
WaldiPL committed Feb 21, 2018
1 parent d3ef137 commit cd3743d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -271,6 +271,6 @@ function openSitesDelay(openWindow){
}
}else{
delayLinksId=[];
openWindow=-1;
lastWindowId=-1;
}
}
4 changes: 4 additions & 0 deletions src/changelog.js
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion src/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit cd3743d

Please sign in to comment.