mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-08 10:05:47 +01:00
Fix File on non-Minefield builds.
This commit is contained in:
@@ -4,6 +4,9 @@
|
|||||||
// given in the LICENSE.txt file included with this file.
|
// given in the LICENSE.txt file included with this file.
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
if (this.XPCSafeJSObjectWrapper == null)
|
||||||
|
this.XPCSafeJSObjectWrapper = XPCNativeWrapper;
|
||||||
|
|
||||||
const myObject = Object;
|
const myObject = Object;
|
||||||
Components.utils.import("resource://dactyl/base.jsm");
|
Components.utils.import("resource://dactyl/base.jsm");
|
||||||
defineModule("storage", {
|
defineModule("storage", {
|
||||||
@@ -282,7 +285,7 @@ const File = Class("File", {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let self = XPCNativeWrapper(file);
|
let self = XPCSafeJSObjectWrapper(file);
|
||||||
self.__proto__ = File.prototype;
|
self.__proto__ = File.prototype;
|
||||||
return self;
|
return self;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user