mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 14:35:03 +00:00
fix: file input element - missing path property (#3757)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { ipcRenderer, contextBridge } = require('electron');
|
||||
const { ipcRenderer, contextBridge, webUtils } = require('electron');
|
||||
|
||||
contextBridge.exposeInMainWorld('ipcRenderer', {
|
||||
invoke: (channel, ...args) => ipcRenderer.invoke(channel, ...args),
|
||||
@@ -10,5 +10,9 @@ contextBridge.exposeInMainWorld('ipcRenderer', {
|
||||
return () => {
|
||||
ipcRenderer.removeListener(channel, subscription);
|
||||
};
|
||||
},
|
||||
getFilePath (file) {
|
||||
const path = webUtils.getPathForFile(file)
|
||||
return path;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user