mirror of
https://github.com/electron/electron.git
synced 2026-01-15 02:18:18 -05:00
8 lines
180 B
HTML
8 lines
180 B
HTML
<script>
|
|
const { ipcRenderer } = require('electron');
|
|
caches.open('foo').then(
|
|
() => ipcRenderer.send('success'),
|
|
err => ipcRenderer.send('failure', err)
|
|
)
|
|
</script>
|