fix: use bridgeCommand instead pycmd for now "till add rpc in future"

This commit is contained in:
medProgAyat 2025-10-09 17:42:23 +03:30
parent 4e8997d497
commit 49924c4e8f

View file

@ -2,16 +2,14 @@
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script context="module" lang="ts">
declare function pycmd(cmd: string);
</script>
<script lang="ts">
import { bridgeCommand } from "@tslib/bridgecommand";
export let error: Error;
function closePage() {
try {
pycmd("close");
bridgeCommand("close");
} catch {
history.back();
}