Skip to content

Commit

Permalink
fix whitelist bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sereneblue committed Jun 26, 2018
1 parent b8bb076 commit c87589c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ function whitelisted(url) {
return true;
}
}
return false;
}

return false;
}

chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
Expand Down Expand Up @@ -489,10 +490,10 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
whitelist.enabled = request.data.value;
} else if (request.data.key == "enableWhitelistRealProfile") {
whitelist.realProfile = request.data.value;
} else if (request.data.key.indexOf("wl_") > -1) {
whitelist.profile[request.data.key.slice(3)] = request.data.value;
} else if (request.data.key == "wl_urls"){
whitelist.urlList = JSON.parse(request.data.value);
} else if (request.data.key.indexOf("wl_") > -1) {
whitelist.profile[request.data.key.slice(3)] = request.data.value;
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
},
"name": "Chameleon",
"version": "0.6.7",
"version": "0.6.8",
"manifest_version": 2,
"description": "Spoof your browser profile. Includes a few privacy enhancing options.",
"background": {
Expand Down
2 changes: 1 addition & 1 deletion src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@
<div class="tab" id="about">
<img src="img/icon_48.png">
<h2 class="centered">Chameleon</h2>
<h4 class="centered">v0.6.7</h4>
<h4 class="centered">v0.6.8</h4>
<br/>
<p class="centered">
Developed by <a href="https://github.com/sereneblue">sereneblue</a> and <a href="https://github.com/sereneblue/chameleon/graphs/contributors">contributors</a>
Expand Down

0 comments on commit c87589c

Please sign in to comment.