mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 01:25:46 +01:00
Add cache module. Cleanup help and DTD generation. Fix :help version generation issues. Fix other assorted issues.
This commit is contained in:
2
common/bootstrap.js
vendored
2
common/bootstrap.js
vendored
@@ -207,6 +207,7 @@ function init() {
|
||||
let pref = "extensions.dactyl.cacheFlushCheck";
|
||||
let val = addon.version + "-" + hardSuffix;
|
||||
if (!Services.prefs.prefHasUserValue(pref) || Services.prefs.getCharPref(pref) != val) {
|
||||
var cacheFlush = true;
|
||||
Services.obs.notifyObservers(null, "startupcache-invalidate", "");
|
||||
Services.prefs.setCharPref(pref, val);
|
||||
}
|
||||
@@ -244,6 +245,7 @@ function init() {
|
||||
JSMLoader.load(BOOTSTRAP_JSM, global);
|
||||
|
||||
JSMLoader.init(suffix);
|
||||
JSMLoader.cacheFlush = cacheFlush;
|
||||
JSMLoader.load("base.jsm", global);
|
||||
|
||||
if (!(BOOTSTRAP_CONTRACT in Cc)) {
|
||||
|
||||
Reference in New Issue
Block a user