Skip to content

Commit

Permalink
Version 1.1.1
Browse files Browse the repository at this point in the history
- fixed bugs
- removed unused file
- minor changes
  • Loading branch information
WaldiPL committed Jul 16, 2017
1 parent 32620d6 commit 2aee9dd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
3 changes: 0 additions & 3 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@
"notifications": {
"message": "Notifications"
},
"save": {
"message": "Save"
},
"autoOpen": {
"message": "Automatically open the changed pages"
},
Expand Down
3 changes: 0 additions & 3 deletions _locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@
"notifications": {
"message": "Powiadomienia"
},
"save": {
"message": "Zapisz"
},
"autoOpen": {
"message": "Automatycznie otwieraj zmienione strony"
},
Expand Down
9 changes: 0 additions & 9 deletions i18n.js

This file was deleted.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"manifest_version": 2,
"default_locale": "en",
"name": "__MSG_extensionName__",
"version": "1.1.0",
"version": "1.1.1",
"icons": {
"48": "icons/icon.svg",
"24": "icons/icon2.svg"
Expand Down
2 changes: 1 addition & 1 deletion shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function scanSite(ev,auto=false,force=false){
}catch(e){
console.warn(e);
}
if(!auto)statusbar(`<progress value='${ix}' max='${len}'></progress>`,true);
if(!auto)statusbar([ix,len],true);
});
if(!auto)statusbar(i18n("scanCompleted"));
}).then((s)=>{
Expand Down
18 changes: 16 additions & 2 deletions sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,23 @@ function hideAll(e){
}

function statusbar(e,aHide){
document.getElementById("statusbar").innerHTML=e;
let statusbar=document.getElementById("statusbar");
if(typeof(e)==="string"){
statusbar.textContent=e;
}else{
let progress;
if(e[0]===0){
statusbar.textContent="";
progress=document.createElement('progress');
progress.max=e[1];
statusbar.appendChild(progress);
}else{
progress=document.getElementsByTagName("progress")[0];
}
progress.value=e[0];
}
if(!aHide){
setTimeout(()=>{document.getElementById("statusbar").textContent="";},5000);
setTimeout(()=>{statusbar.textContent="";},5000);
}
}

Expand Down

0 comments on commit 2aee9dd

Please sign in to comment.