]> git.wh0rd.org Git - chrome-ext/clearhistory-advance-fork.git/commitdiff
use non-persistent background page
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jan 2013 21:25:14 +0000 (16:25 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jan 2013 03:40:09 +0000 (22:40 -0500)
javascript/options.js
manifest.json
views/options.html

index a3f3b01f93d78baf9653dcbc89e26c2a8e3d4475..682347bff6c00e2e6d68980bba947938c3030673 100644 (file)
@@ -7,9 +7,6 @@
 
 window.addEventListener('load', init, false);
 
-//Get the constants from the background page
-var CONSTANTS = chrome.extension.getBackgroundPage().CONSTANTS;
-
 /**
  * Initializes the i18n strings.
  * Loads values from localStorage and applies them to the elements
index de75f53bc8f71479da39e4b4659dc9827767628a..a4ff4ff16bfdecd407c6523fe743399386a17f60 100644 (file)
@@ -13,6 +13,7 @@
     "https://*/*"
   ],
   "background": {
+    "persistent": false,
     "scripts": [
       "javascript/background.js",
       "javascript/util.js",
index ad899fa794e5e1402342835c6d64579ce2766063..29de38af55641ed1df80fd66131ea432de1c19e9 100644 (file)
@@ -71,6 +71,7 @@
         </div>
       </div>
     </div>
+    <script src="../javascript/background.js"></script>
     <script src="../javascript/util.js"></script>
     <script src="../javascript/options.js"></script>
   </body>