We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21637dc commit 47fd239Copy full SHA for 47fd239
clients/chrome/js/magic.js
@@ -10,6 +10,7 @@ velvetLinks.each(function(e) {
10
}
11
});
12
13
+
14
var key = hash(Array.from(urls).join()).toString();
15
chrome.storage.local.get(key, function(result) {
16
if(key in result) {
@@ -21,7 +22,7 @@ chrome.storage.local.get(key, function(result) {
21
22
chrome.storage.local.clear();
23
24
var scores = response.scores;
- if(!hasNullValue(scores)) {
25
+ if(!hasNullValue(scores) && urls.size === Object.keys(scores).length) {
26
var value = {}; value[key] = scores;
27
chrome.storage.local.set(value);
28
0 commit comments