Skip to content

Commit

Permalink
Themer: Fix style tag duplicating on plugin reload
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckoates committed Sep 8, 2024
1 parent c13d176 commit 1f70729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Themer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const style = setStyle(storage.css);

export const onUnload = () => {
window.electron.ipcRenderer.invoke("THEMER_CLOSE_EDITOR");
window.electron.ipcRenderer.off("THEMER_SET_CSS", setCSS);
window.electron.ipcRenderer.removeAllListeners("THEMER_SET_CSS");
document.removeEventListener("keydown", onKeyDown);
style.remove();
};

0 comments on commit 1f70729

Please sign in to comment.