mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
fix: use bridgeCommand instead pycmd for now "till add rpc in future"
This commit is contained in:
parent
4e8997d497
commit
49924c4e8f
1 changed files with 2 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue