mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-01 21:25:45 +01:00
Throw an error when trying to replace a plugin context.
This commit is contained in:
@@ -213,7 +213,10 @@ var Contexts = Module("contexts", {
|
|||||||
Object.defineProperty(plugins, self.NAME, {
|
Object.defineProperty(plugins, self.NAME, {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
value: self
|
get: function () self,
|
||||||
|
set: function (val) {
|
||||||
|
throw TypeError("Not replacing plugin context for " + self.NAME);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user