mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 15:24:11 +01:00
Insert window into the modules prototype chain again, for the time being. Closes issue #100.
This commit is contained in:
@@ -297,8 +297,7 @@ const Dactyl = Module("dactyl", {
|
||||
|
||||
if (!context)
|
||||
context = userContext;
|
||||
context[EVAL_STRING] = str;
|
||||
return Cu.evalInSandbox("with (window) { this.eval(" + EVAL_STRING + ") }", context, "1.8", fileName, lineNumber);
|
||||
return Cu.evalInSandbox(str, context, "1.8", fileName, lineNumber);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -1976,9 +1975,6 @@ const Dactyl = Module("dactyl", {
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// always start in normal mode
|
||||
modes.reset();
|
||||
|
||||
// TODO: we should have some class where all this guioptions stuff fits well
|
||||
// Dactyl.hideGUI();
|
||||
|
||||
@@ -1993,6 +1989,8 @@ const Dactyl = Module("dactyl", {
|
||||
let init = services.get("environment").get(config.idName + "_INIT");
|
||||
let rcFile = io.getRCFile("~");
|
||||
|
||||
jsmodules.__proto__ = (window.XPCSafeJSObjectWrapper || XPCNativeWrapper)(window);
|
||||
|
||||
try {
|
||||
if (dactyl.commandLineOptions.rcFile) {
|
||||
let filename = dactyl.commandLineOptions.rcFile;
|
||||
|
||||
Reference in New Issue
Block a user