Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
namespaced localStorage for privly button option
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfulgeanu authored and smcgregor committed Sep 5, 2014
1 parent 87de041 commit a274a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascripts/background_scripts/posting_process.js
Expand Up @@ -263,11 +263,11 @@ chrome.runtime.onMessage.addListener(
}
});

// Respond to the request sent from posting_button.js with the value from localStorage["checkedValue"]
// Respond to the request sent from posting_button.js with the value from localStorage["Options:DissableButton"]
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.ask === "PrivlyBtnStatus") {
if(localStorage["checkedValue"] === "true") {
if(localStorage["Options:DissableButton"] === "true") {
sendResponse({tell: "checked"});
} else {
sendResponse({tell: "unchecked"});
Expand Down

0 comments on commit a274a0c

Please sign in to comment.