From 23094f2adb0d7f1ce90d0eca08d906789a9c2cc1 Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Fri, 31 Mar 2023 09:14:36 +0200 Subject: [PATCH] Remove css classes on unload --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index f24149d..a108a6f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -255,6 +255,9 @@ export default class FolderNotesPlugin extends Plugin { console.log('unloading folder notes plugin'); this.observer.disconnect(); document.body.classList.remove('folder-notes-plugin'); + document.body.classList.remove('folder-note-underline'); + document.body.classList.remove('hide-folder-note'); + document.body.classList.remove('fn-whitespace-collapsing'); } async loadSettings() {