mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 15:25:47 +01:00
[bootstrap] Fix for Gecko<2.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -82,11 +82,17 @@ var Overlay = Module("Overlay", {
|
||||
Module.list = [];
|
||||
Module.constructors = {};
|
||||
|
||||
const create = window.Object.create || function (proto) {
|
||||
let res = window.Object();
|
||||
object.__proto__ = proto;
|
||||
return object;
|
||||
}
|
||||
const BASE = "chrome://dactyl/content/";
|
||||
|
||||
const create = window.Object.create || (function () {
|
||||
window.__dactyl_eval_string = "(function (proto) ({ __proto__: proto }))";
|
||||
services.subscriptLoader.loadSubScript(BASE + "eval.js", window);
|
||||
|
||||
let res = window.__dactyl_eval_result;
|
||||
delete window.__dactyl_eval_string;
|
||||
delete window.__dactyl_eval_result;
|
||||
return res;
|
||||
})();
|
||||
|
||||
const jsmodules = {};
|
||||
const modules = update(create(jsmodules), {
|
||||
@@ -133,8 +139,6 @@ var Overlay = Module("Overlay", {
|
||||
modules.modules = modules;
|
||||
window.dactyl = { modules: modules };
|
||||
|
||||
const BASE = "chrome://dactyl/content/";
|
||||
|
||||
let prefix = [BASE];
|
||||
|
||||
modules.load("util");
|
||||
|
||||
Reference in New Issue
Block a user