diff --git a/contextAPI.js b/contextAPI.js index 3d0ceeb..1b09d85 100644 --- a/contextAPI.js +++ b/contextAPI.js @@ -1,6 +1,6 @@ "use strict"; -const {contextBridge, ipcRenderer} = require("electron"); +const {contextBridge, ipcRenderer, webFrame} = require("electron"); let fileOpenListener = null; @@ -14,5 +14,7 @@ contextBridge.exposeInMainWorld("api", { }, openFile : filePath => ipcRenderer.send("WindowManager::openFile", filePath), - removeOnFileOpenListener : callback => ipcRenderer.off("Ation::openFile", callback) + removeOnFileOpenListener : callback => ipcRenderer.off("Ation::openFile", callback), + + clearCache : () => webFrame.clearCache() }); \ No newline at end of file