X-Git-Url: https://git.wh0rd.org/?p=chrome-ext%2Fweb-power-switch.git;a=blobdiff_plain;f=common.js;h=9abdd95fdfd65b5e652cdbe4c341d25e47ac4c4a;hp=0912905a8ea3554e1a08ddc23209736a460518c7;hb=HEAD;hpb=dc7033a88058ecf87b57c8f660d5149a6726a24e diff --git a/common.js b/common.js index 0912905..9abdd95 100644 --- a/common.js +++ b/common.js @@ -1,15 +1,19 @@ // Written by Mike Frysinger . Released into the public domain. +function $(s) { return document.querySelector(s); } + var storage = chrome.storage.sync; var settings_keys = [ 'url', 'user', 'pass', + 'theme', ]; var settings_defaults = { 'url': 'http://192.168.0.100', 'user': 'admin', 'pass': '1234', + 'theme': 'system', };