Skip to content

Commit

Permalink
Hopefully become more resilient to duplicate instances of the extensi…
Browse files Browse the repository at this point in the history
…on running (closes #96)

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
  • Loading branch information
SUPERCILEX committed Aug 22, 2022
1 parent f12fd67 commit b9f3c87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,10 @@ function init() {
let clipboardIndicator;

function enable() {
if (clipboardIndicator) {
return;
}

Store.init();

clipboardIndicator = new ClipboardIndicatorObj();
Expand Down

0 comments on commit b9f3c87

Please sign in to comment.