From 436bac527c5bd4552c8081f14a2225c4802f69c1 Mon Sep 17 00:00:00 2001 From: celeste Date: Mon, 24 Jul 2023 03:19:30 -0400 Subject: [PATCH] fix --- manifest.json | 2 +- package.json | 2 +- views.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index df6f135..ccb7930 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "loom", "name": "Loom", - "version": "1.15.1", + "version": "1.15.2", "minAppVersion": "0.15.0", "description": "Loom in Obsidian", "author": "celeste", diff --git a/package.json b/package.json index 59dd490..8b45734 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-loom", - "version": "1.15.1", + "version": "1.15.2", "description": "Loom in Obsidian", "main": "main.js", "scripts": { diff --git a/views.ts b/views.ts index ed2c017..dd3baea 100644 --- a/views.ts +++ b/views.ts @@ -352,7 +352,7 @@ export class LoomView extends ItemView { .filter(([, node]) => node.parentId === null) const deletable = rootNodes.length !== 1 || rootNodes[0][0] !== id; - const showMenu = (event) => { + const showMenu = (event: MouseEvent) => { const menu = new Menu(); const menuItem = (name: string, icon: string, callback: () => void) => @@ -409,7 +409,7 @@ export class LoomView extends ItemView { cls: "loom__node-buttons" }); - const button = (label: string, icon: string, callback: () => void) => { + const button = (label: string, icon: string, callback: (event: MouseEvent) => void) => { const button_ = nodeButtonsContainer.createDiv({ cls: "loom__node-button", attr: { "aria-label": label },