1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 20:45:45 +01:00

Fix File on non-Minefield builds.

This commit is contained in:
Kris Maglione
2010-10-14 14:48:01 -04:00
parent 2a7847a0b2
commit d7fb8637d7

View File

@@ -4,6 +4,9 @@
// given in the LICENSE.txt file included with this file.
"use strict";
if (this.XPCSafeJSObjectWrapper == null)
this.XPCSafeJSObjectWrapper = XPCNativeWrapper;
const myObject = Object;
Components.utils.import("resource://dactyl/base.jsm");
defineModule("storage", {
@@ -282,7 +285,7 @@ const File = Class("File", {
return null;
}
}
let self = XPCNativeWrapper(file);
let self = XPCSafeJSObjectWrapper(file);
self.__proto__ = File.prototype;
return self;
},