mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-26 04:07:24 +00:00
Add obsidian plugin unloading
This commit is contained in:
10
dist/obsidian/main.js
vendored
10
dist/obsidian/main.js
vendored
@@ -1906,7 +1906,7 @@ module.exports = class MyPlugin extends Plugin {
|
||||
insertModal(`${birdBirb()} Mode`, message);
|
||||
}),
|
||||
new Separator(),
|
||||
new MenuItem("2025.11.13.1", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.1"); }, false),
|
||||
new MenuItem("2025.11.13.2", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.11.13.2"); }, false),
|
||||
];
|
||||
|
||||
const styleElement = document.createElement("style");
|
||||
@@ -2698,4 +2698,10 @@ module.exports = class MyPlugin extends Plugin {
|
||||
})();
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
onunload() {
|
||||
// Remove the birb when the plugin is unloaded
|
||||
document.getElementById('birb')?.remove();
|
||||
console.log('Pocket Bird unloaded!');
|
||||
}
|
||||
};
|
||||
2
dist/obsidian/manifest.json
vendored
2
dist/obsidian/manifest.json
vendored
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "pocket-bird",
|
||||
"name": "Pocket Bird",
|
||||
"version": "2025.11.13.1",
|
||||
"version": "2025.11.13.2",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "It's a pet bird in your Obsidian, what more could you want?",
|
||||
"author": "Idrees Hassan",
|
||||
|
||||
Reference in New Issue
Block a user