I have the following frontend code:
import { onMount } from "svelte";
import { listen } from '@tauri-apps/api/event';
import { sendNotification, removeAllActive } from "@tauri-apps/plugin-notification";
let state = {
// ...
};
let infoState = {
// ...
};
$: state.elements?.textArea?.focus();
listen(`shortcut`, (e) => {
if (!e.payload == `CtrlShiftSpace`) return;
if (!state.elements.textArea?.isConnected) return;
sendNotification({
title: `Test`,
body: `Testbody :)`,
});
setTimeout(removeAllActive, 2000);
});
I keep getting the error "Command remove_active not found" , which seems to have to be an internal issue I believe, since I do correctly have it allowed in my permissions json.