From 7e65662510cbda702f6bb137209517567b6c5fee Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 23 Apr 2017 22:19:14 +0200 Subject: [PATCH] Fixes condition to query for data on getPageInfo 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. --- js/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index 90870e4..9cacd6f 100644 --- a/js/background.js +++ b/js/background.js @@ -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];