Index: popup.js |
diff --git a/popup.js b/popup.js |
index 24c4523896d928f99dc7267fd19a69d0b832924e..8e0c5ddfa628c9ec564c4af87b648c3cd685a382 100644 |
--- a/popup.js |
+++ b/popup.js |
@@ -24,6 +24,11 @@ function getPref(key, callback) |
chrome.runtime.sendMessage({type: "prefs.get", key}, callback); |
} |
+function setPref(key, value, callback) |
+{ |
+ chrome.runtime.sendMessage({type: "prefs.set", key, value}, callback); |
+} |
+ |
function togglePref(key, callback) |
{ |
chrome.runtime.sendMessage({type: "prefs.toggle", key}, callback); |