Skip to content

Commit

Permalink
Change condition order to avoid exceptions due to missing url
Browse files Browse the repository at this point in the history
  • Loading branch information
sblask committed Sep 25, 2017
1 parent 57a7865 commit 3bc5513
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function __isURLOpenInActiveTabAndComplete(url) {
return chainPromises([
() => browser.tabs.query({ active: true, currentWindow: true }),
(tabs) => tabs[0],
(tab) => __cleanURL(tab.url) === __cleanURL(url) && tab.status === "complete",
(tab) => tab.status === "complete" && __cleanURL(tab.url) === __cleanURL(url),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
"storage",
"unlimitedStorage"
],
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"test": "web-ext lint"
},
"title": "Bookmark Dial",
"version": "2.0.0"
"version": "2.0.1"
}

0 comments on commit 3bc5513

Please sign in to comment.