mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-27 11:56:05 +02:00
2cf8faa3e1
* chore(deps): update to tauri alpha.20, @tauri-apps/api alpha.13 * fix lockfile
19 lines
496 B
TypeScript
19 lines
496 B
TypeScript
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { invoke } from "@tauri-apps/api/core";
|
|
|
|
window.alert = function (message: string) {
|
|
invoke("plugin:dialog|message", {
|
|
message: message.toString(),
|
|
});
|
|
};
|
|
|
|
// @ts-expect-error tauri does not have sync IPC :(
|
|
window.confirm = function (message: string) {
|
|
return invoke("plugin:dialog|confirm", {
|
|
message: message.toString(),
|
|
});
|
|
};
|