Skip to content

Commit

Permalink
Fix bug where updating from v8.1 to v9 would show 'undefined' as lang…
Browse files Browse the repository at this point in the history
…uage
  • Loading branch information
corbindavenport committed Nov 25, 2017
1 parent 49caf98 commit e20eddb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ chrome.runtime.onInstalled.addListener(function(details){
localStorage["full-language"] = detailArray[langArray.indexOf("en")];
}
}
if (localStorage.getItem("full-language") === null) {
localStorage["full-language"] = detailArray[langArray.indexOf(localStorage["language"])];
}
if (localStorage.getItem("protocol") === null) {
localStorage["protocol"] = "https://";
}
Expand Down

0 comments on commit e20eddb

Please sign in to comment.