From ca57d49aa7bdc17af272e4e92613eeba12f6f419 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 18 Jan 2025 19:46:39 -0500 Subject: Prevent simultaneous actions from causing rate limit --- extension/src/components/BMEditor.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'extension/src/components/BMEditor.tsx') diff --git a/extension/src/components/BMEditor.tsx b/extension/src/components/BMEditor.tsx index eb84246..d66763e 100644 --- a/extension/src/components/BMEditor.tsx +++ b/extension/src/components/BMEditor.tsx @@ -16,7 +16,15 @@ function BMEditor() { if (!activeEdit) return; }, [activeEdit]); - let isFolder = activeEdit && activeEdit.children && activeEdit.children.length > 0; + function handleTitleChange(e: React.ChangeEvent) { + getBrowser().bookmarks.update(activeEdit!.id, {title: e.target.value}) + } + + function handleURLChange(e: React.ChangeEvent) { + getBrowser().bookmarks.update(activeEdit!.id, {url: e.target.value}) + } + + let isFolder = activeEdit && activeEdit.children /*&& activeEdit.children.length > 0;*/ return (