mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 00:21:32 +03:00
25 lines
326 B
JavaScript
25 lines
326 B
JavaScript
import tauri from './tauri'
|
|
|
|
/**
|
|
* sets the window title
|
|
*
|
|
* @param {String} title the new title
|
|
*/
|
|
function setTitle (title) {
|
|
tauri.setTitle(title)
|
|
}
|
|
|
|
/**
|
|
* opens an URL on the user default browser
|
|
*
|
|
* @param {String} url the URL to open
|
|
*/
|
|
function open (url) {
|
|
tauri.open(url)
|
|
}
|
|
|
|
export {
|
|
setTitle,
|
|
open
|
|
}
|