Skip to content

Commit

Permalink
remove speakcheck in clear.addEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharfc authored Mar 3, 2019
1 parent 4e66284 commit a9a7451
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,17 +781,9 @@ let changeSpeak = () => {

clear.addEventListener("click", () => {
let checkDark = 0;
let checkSpeak = 0;
chrome.storage.local.clear();
if(dark === true){
checkDark = 1;
}
if(!speakcheck) {
checkSpeak = 1;
}
if (checkSpeak === 1){
changeSpeak();
}

chrome.storage.local.clear();

if(checkDark === 1){
dark = true;
chrome.storage.sync.set({
Expand Down

0 comments on commit a9a7451

Please sign in to comment.