Added openFile example

This commit is contained in:
lnrdnl committed 2024-02-20 16:04:39 +01:00
1 parent 5ab988dab1
commit f310d94d9f
6 files changed
+58 -13

No files matched your search

+5 -1
View File
@@ -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