mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:47:59 +01:00
liberator.eval (:js/:echo/...) now uses a separate context. JS completion uses disposable contexts that last one session.
This commit is contained in:
@@ -822,11 +822,9 @@ lookup:
|
||||
// handle pure javascript files specially
|
||||
if (/\.js$/.test(filename))
|
||||
{
|
||||
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||
try
|
||||
{
|
||||
loader.loadSubScript(uri.spec, new Script(file.path));
|
||||
liberator.loadScript(uri.spec, new Script(file.path));
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user