mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 19:35:46 +01:00
Fix some dactyl.userEval magic now that it works again.
This commit is contained in:
@@ -298,7 +298,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
if (!context)
|
if (!context)
|
||||||
context = userContext;
|
context = userContext;
|
||||||
context[EVAL_STRING] = str;
|
context[EVAL_STRING] = str;
|
||||||
return Cu.evalInSandbox("eval('with (window) {'+" + EVAL_STRING + "+'}')", context, "1.8", fileName, lineNumber);
|
return Cu.evalInSandbox("with (window) { eval(" + EVAL_STRING + ") }", context, "1.8", fileName, lineNumber);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user