Improve caching
This commit is contained in:
@@ -61,6 +61,8 @@ function createWindow() {
|
||||
{ label: 'Back', accelerator: 'Alt+Left', click: () => window.webContents.send('native-vue:back') },
|
||||
{ label: 'Forward', accelerator: 'Alt+Right', click: () => window.webContents.send('native-vue:forward') },
|
||||
{ type: 'separator' },
|
||||
{ label: 'Trim Navigation Cache', click: () => window.webContents.send('native-vue:memory-pressure') },
|
||||
{ type: 'separator' },
|
||||
{ role: 'reload' },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -9,4 +9,5 @@ function listener(channel, callback) {
|
||||
contextBridge.exposeInMainWorld('nativeVueHost', {
|
||||
onBack: (callback) => listener('native-vue:back', callback),
|
||||
onForward: (callback) => listener('native-vue:forward', callback),
|
||||
onMemoryPressure: (callback) => listener('native-vue:memory-pressure', callback),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user