window.js 326 B

123456789101112131415161718192021222324
  1. import tauri from './tauri'
  2. /**
  3. * sets the window title
  4. *
  5. * @param {string} title the new title
  6. */
  7. function setTitle (title) {
  8. tauri.setTitle(title)
  9. }
  10. /**
  11. * opens an URL on the user default browser
  12. *
  13. * @param {string} url the URL to open
  14. */
  15. function open (url) {
  16. tauri.open(url)
  17. }
  18. export {
  19. setTitle,
  20. open
  21. }