Fix bird/birb in menu items

This commit is contained in:
Idrees Hassan
2026-04-04 10:13:17 -07:00
parent 85ade65a57
commit 96ff61625a
9 changed files with 21 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
const { Plugin, Notice } = require('obsidian');
module.exports = class PocketBird extends Plugin {
onload() {
console.log("Loading Pocket Bird version 2026.4.3...");
console.log("Loading Pocket Bird version 2026.4.4...");
const OBSIDIAN_PLUGIN = this;
(function () {
'use strict';
@@ -2684,7 +2684,7 @@ module.exports = class PocketBird extends Plugin {
};
const menuItems = [
new MenuItem(`Pet ${birdBirb()}`, pet, [
new MenuItem(() => `Pet ${birdBirb()}`, pet, [
[0, 1, 1, 0, 1, 1, 0],
[1, 0, 0, 1, 0, 0, 1],
[1, 0, 0, 0, 0, 0, 1],
@@ -2716,7 +2716,7 @@ module.exports = class PocketBird extends Plugin {
[1, 0, 0, 0, 0, 1, 0],
[1, 1, 1, 1, 1, 1, 0],
]),
new MenuItem(`Hide ${birdBirb()}`, () => birb.setVisible(false), [
new MenuItem(() => `Hide ${birdBirb()}`, () => birb.setVisible(false), [
[0, 1, 0, 1, 0, 1, 0],
[1, 0, 0, 1, 0, 0, 1],
[1, 0, 0, 1, 0, 0, 1],
@@ -2774,7 +2774,7 @@ module.exports = class PocketBird extends Plugin {
}),
new Separator(),
new MenuItem(() => `Source Code ${isPetBoostActive() ? " ❤" : ""}`, () => { window.open("https://github.com/IdreesInc/Pocket-Bird"); }),
new MenuItem("Build 2026.4.3", () => { alert("Thank you for using Pocket Bird! You are on version: 2026.4.3"); }, undefined, false),
new MenuItem("Build 2026.4.4", () => { alert("Thank you for using Pocket Bird! You are on version: 2026.4.4"); }, undefined, false),
];
/** @type {Birb} */