Skip to content

Commit

Permalink
Fix a bug in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Apr 25, 2024
1 parent ed7c0df commit 440cd1c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/demo/src/lib/components/listener.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,24 @@
onMount(async () => {
unlistenTextUpdate = await onTextUpdate((newText) => {
clear();
text = newText;
});
unlistenHtmlUpdate = await onHTMLUpdate((newHtml) => {
clear();
htmlMonitorContent = newHtml;
});
unlistenImageUpdate = await onImageUpdate((b64Str) => {
clear();
base64Image = b64Str;
});
unlistenFiles = await onFilesUpdate((newFiles) => {
clear();
files = newFiles;
});
unlistenRTF = await onRTFUpdate((newRTF) => {
clear();
rtf = newRTF;
});
unlistenClipboard = await startListening();
onClipboardUpdate(async () => {
clear();
has.hasHTML = await hasHTML();
has.hasImage = await hasImage();
has.hasText = await hasText();
Expand Down

0 comments on commit 440cd1c

Please sign in to comment.