mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 18:54:10 +01:00
Flush literal cache when loading plugins and such.
This commit is contained in:
@@ -458,6 +458,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
* should be loaded.
|
||||
*/
|
||||
loadScript: function loadScript(uri, context) {
|
||||
let prefix = "literal:" + uri + ":";
|
||||
cache.flush(s => s.indexOf(prefix) == 0);
|
||||
delete literal.files[uri];
|
||||
JSMLoader.loadSubScript(uri, context, File.defaultEncoding);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user