123456789101112131415161718192021222324252627282930 |
- import { invoke } from './tauri'
- /**
- * sets the window title
- *
- * @param title the new title
- */
- function setTitle(title: string): void {
- invoke({
- cmd: 'setTitle',
- title
- })
- }
- /**
- * opens an URL on the user default browser
- *
- * @param url the URL to open
- */
- function open(url: string): void {
- invoke({
- cmd: 'open',
- uri: url
- })
- }
- export {
- setTitle,
- open
- }
|