mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-27 07:24:59 +00:00
add function to check if context has specified context
This commit is contained in:
parent
f39acbdd42
commit
fba491592d
@ -49,6 +49,10 @@ Plugin.prototype.isContextValid = function() {
|
||||
});
|
||||
};
|
||||
|
||||
Plugin.prototype.hasContext = function(context) {
|
||||
return this.currentContext.includes(context);
|
||||
};
|
||||
|
||||
Plugin.prototype.loadPlugin = function() {
|
||||
if (!this.isContextValid()) {
|
||||
console.log(this.acceptedContext);
|
||||
|
Loading…
x
Reference in New Issue
Block a user