mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-07 10:22:29 +02:00
19 lines
258 B
TypeScript
19 lines
258 B
TypeScript
import { invoke } from './tauri'
|
|
|
|
/**
|
|
* sets the window title
|
|
*
|
|
* @param title the new title
|
|
*/
|
|
function setTitle(title: string): void {
|
|
invoke({
|
|
module: 'Window',
|
|
message: {
|
|
cmd: 'setTitle',
|
|
title
|
|
}
|
|
})
|
|
}
|
|
|
|
export { setTitle }
|