Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: options.js

Issue 5589897452716032: Implemented ext.contextMenus for Safari (Closed)
Patch Set: Corrected width and height of clickhide popup Created Jan. 7, 2014, 5:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: options.js
===================================================================
--- a/options.js
+++ b/options.js
@@ -133,10 +133,10 @@
function initCheckbox(id)
{
var checkbox = document.getElementById(id);
- checkbox.checked = typeof localStorage[id] == "undefined" ? true : localStorage[id] == "true";
+ checkbox.checked = Prefs[id];
checkbox.addEventListener("click", function()
{
- localStorage[id] = checkbox.checked;
+ Prefs[id] = checkbox.checked;
}, false);
}

Powered by Google App Engine
This is Rietveld