Added openFile example
This commit is contained in:
1 parent
5ab988dab1
commit
f310d94d9f
6 files changed
+58
-13
No files matched your search
@@ -6,6 +6,10 @@ export default class Utils {
|
||||
static async openExternal(url: string): Promise<void> {
|
||||
await window.mainApi.send('msgOpenExternalLink', url)
|
||||
}
|
||||
|
||||
static async openFile(type: string): Promise<any> {
|
||||
return window.mainApi.invoke('msgOpenFile', type)
|
||||
}
|
||||
}
|
||||
|
||||
export const { getCurrentLocale, openExternal } = Utils
|
||||
export const { getCurrentLocale, openExternal, openFile } = Utils
|
||||
Reference in new issue
Block a user