1
0
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:
Kris Maglione
2014-02-21 00:23:34 -08:00
parent 14fc90ff58
commit 606ea93d46

View File

@@ -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);
},