pack: vutron now uses typescript

This commit is contained in:
leejooy96 committed 2022-10-18 11:08:55 +09:00
1 parent 30b0676f13
commit 5a4fa9a981
25 files changed
+580 -26

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { shell } from 'electron'
export default class Utils {
static getCurrentLocale () : string {
return navigator?.language?.split('-')[0] || 'en'
}
static async openExternal (url: string) : Promise<void> {
await shell.openExternal(url)
}
}