Skip to content

Commit

Permalink
Switch to promise for storage.get
Browse files Browse the repository at this point in the history
  • Loading branch information
nralbrecht committed Sep 22, 2018
1 parent 4d686ef commit 4f510fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion background-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let lastActiveTab = {
};
let loadInBackground = true;

browser.storage.local.get("loadInBackground", function(res) {
browser.storage.local.get("loadInBackground").then(function(res) {
if (res.loadInBackground === undefined) {
loadInBackground = true;

Expand Down

0 comments on commit 4f510fa

Please sign in to comment.