renderer: add theme switcher, go to about page button in main screen
This commit is contained in:
1 parent
72f2ef94a6
commit
df3906c1cc
4 files changed
+62
No files matched your search
@@ -1,5 +1,11 @@
|
||||
import { shell } from 'electron'
|
||||
|
||||
export default class Utils {
|
||||
static getCurrentLocale () {
|
||||
return navigator?.language?.split('-')[0] || 'en'
|
||||
}
|
||||
|
||||
static async openExternal (url) {
|
||||
await shell.openExternal(url)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user