Skip to content

Commit

Permalink
fix onunload
Browse files Browse the repository at this point in the history
  • Loading branch information
Benature committed Jun 4, 2024
1 parent a51aa5b commit 5eba6a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
## dev
<!-- ## 0.0.12 -->

## 0.0.16
- [fix] onunload error

## 0.0.15
- [fix] #5
- disable snippet when onunload

## 0.0.14
- [updated] i18n refactoring, add support html elements

## 0.0.13
- [updated] In settings, after clicking add button, new entry will be added at the first, rather than at the last. It is more convenient for users to see the new entry when there are many entries already.

Expand Down
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default class MetadataIcon extends Plugin {

onunload() {
// @ts-ignore
const customCss = plugin.app.customCss;
customCss.enabledSnippets.remove(css_filename);
const customCss = this.app.customCss;
customCss.enabledSnippets.delete(css_filename);
customCss.requestLoadSnippets();
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "metadata-icon",
"name": "Metadata Icon",
"version": "0.0.15",
"version": "0.0.16",
"minAppVersion": "0.15.0",
"description": "Change metadata entry icon",
"author": "Benature",
Expand Down

0 comments on commit 5eba6a3

Please sign in to comment.