mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 07:57:59 +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, {
|
||||
configurable: 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