Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
feat(sdk): add enabled method
Browse files Browse the repository at this point in the history
  • Loading branch information
LeilaWang committed Feb 13, 2020
1 parent 5e2fd22 commit 4d13706
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/extension/src/client/Aztec/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class Aztec {
});
}

get enabled() { // eslint-disable-line class-methods-use-this
return !!manager.enabledOptions;
}

addListener(eventName, callback) { // eslint-disable-line class-methods-use-this
manager.eventListeners.add(eventName, callback);
}
Expand Down

0 comments on commit 4d13706

Please sign in to comment.