mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 09:42:30 +02:00
Make 'stal' a string option.
This commit is contained in:
1 parent
7a0c7dacbe
commit
d2c8d0112f
5 files changed
+34
-14
No files matched your search
@@ -16,11 +16,15 @@ if (!JSMLoader)
|
||||
|
||||
for each (let prop in Object.getOwnPropertyNames(global))
|
||||
try {
|
||||
if (!set.has(this.builtin, prop) &&
|
||||
[this, set].indexOf(Object.getOwnPropertyDescriptor(global, prop).value) < 0)
|
||||
delete global[prop];
|
||||
if (!(prop in this.builtin) &&
|
||||
[this, set].indexOf(Object.getOwnPropertyDescriptor(global, prop).value) < 0 &&
|
||||
!global.__lookupGetter__(prop))
|
||||
global[prop] = null;
|
||||
}
|
||||
catch (e) {
|
||||
dump("Deleting property " + prop + " on " + url + ":\n " + e + "\n");
|
||||
Components.utils.reportError(e);
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader)
|
||||
|
||||
Reference in new issue
Block a user