added caching for mica effect, improving startup time

This commit is contained in:
booploops 2022-04-10 00:23:35 -07:00
parent 2be877179d
commit 2edbc243d0
2 changed files with 31 additions and 8 deletions

View file

@ -622,7 +622,10 @@ export class BrowserWindow {
const wpBase64: string = await readFileSync(wpPath, 'base64')
// add the data:image properties
const wpData: string = `data:image/png;base64,${wpBase64}`
event.returnValue = wpData;
event.returnValue = {
path: wpPath,
data: wpData
};
})
ipcMain.handle("reinstall-widevine-cdm", () => {