pack: vutron now uses typescript
This commit is contained in:
1 parent
30b0676f13
commit
5a4fa9a981
25 files changed
+580
-26
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user