Skip to content

Commit

Permalink
Fixes condition to query for data on getPageInfo
Browse files Browse the repository at this point in the history
When the option "Do not check if page has already been bookmarked" was
enabled, it did not load the necessary information to save the bookmark
when the button was clicked. Instead, it was stuck at "Loading
bookmark...". Removing the condition for this setting on getPageInfo
fixes that.
  • Loading branch information
Sebastian committed Apr 23, 2017
1 parent 8da6071 commit 7e65662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var getUserInfo = function () {
// for popup.html to acquire page info
// if there is no page info at local then get it from server
var getPageInfo = function (url) {
if (!url || (url.indexOf('https://') !== 0 && url.indexOf('http://') !== 0) || localStorage[nopingKey] === 'true') {
if (!url || (url.indexOf('https://') !== 0 && url.indexOf('http://') !== 0)) {
return { url: url, isSaved: false };
}
var pageInfo = pages[url];
Expand Down

0 comments on commit 7e65662

Please sign in to comment.