Skip to content

Commit

Permalink
🐛 Do not detach on unload
Browse files Browse the repository at this point in the history
Fixes review item in #3
  • Loading branch information
ebullient committed Sep 1, 2023
1 parent 6da9ccb commit 10d6e63
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,4 @@ export default class DayPlanner extends Plugin {
// console.log('No active note, skipping CodeMirror monitoring')
}
}

onunload() {
console.log("Unloading Day Planner plugin");
this.app.workspace
.getLeavesOfType(VIEW_TYPE_TIMELINE)
.forEach((leaf) => leaf.detach());
}

}

0 comments on commit 10d6e63

Please sign in to comment.