Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Signed-off-by: SEBASTIAN JN <[email protected]>
  • Loading branch information
sebastianjnuwu authored Jan 13, 2025
1 parent a979fd1 commit 29c65bc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/symbols-icons/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ class symbols {
};

if (window.acode) {
acode.setPluginInit(plugin.id, () => new symbols().init());

acode.setPluginUnmount(plugin.id, () => new symbols().destroy());
};
const Instance = new symbols();

acode.setPluginInit(plugin.id, () => Instance.init());

acode.setPluginUnmount(plugin.id, () => Instance.destroy());
};

0 comments on commit 29c65bc

Please sign in to comment.