mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
faa89850d0
* chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 * actually apply the rules lol * rebuild --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <fabianlars@fabianlars.de>
19 lines
513 B
TypeScript
19 lines
513 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) {
|
|
void invoke("plugin:dialog|message", {
|
|
message: message.toString(),
|
|
});
|
|
};
|
|
|
|
// @ts-expect-error tauri does not have sync IPC :(
|
|
window.confirm = async function (message: string) {
|
|
return await invoke("plugin:dialog|confirm", {
|
|
message: message.toString(),
|
|
});
|
|
};
|