mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 13:55:47 +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.
|
* should be loaded.
|
||||||
*/
|
*/
|
||||||
loadScript: function loadScript(uri, context) {
|
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);
|
JSMLoader.loadSubScript(uri, context, File.defaultEncoding);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user