Skip to content
Browse files

Only flush the startup cache if the debug pref is set. Closes #24

  • Loading branch information...
1 parent 0d090e8 commit 752e0f77530ebad6b35a211e093d64e520eb6ddb @Mossop committed Nov 5, 2011
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/bootstrap.js
View
11 src/bootstrap.js
@@ -165,8 +165,15 @@ function shutdown(aParams, aReason) {
let res = Services.io.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler);
res.setSubstitution("webapptabs", null);
- // For testing invalidate the startup cache
- Services.obs.notifyObservers(null, "startupcache-invalidate", null);
+ try {
+ if (!Services.prefs.getBoolPref("extensions.webapptabs.debug"))
+ return;
+
+ // For testing invalidate the startup cache
+ Services.obs.notifyObservers(null, "startupcache-invalidate", null);
+ }
+ catch (e) {
+ }
}
function uninstall(aParams, aReason) {

0 comments on commit 752e0f7

Please sign in to comment.
Something went wrong with that request. Please try again.