зеркало из https://github.com/electron/electron.git
11 строки
310 B
JavaScript
11 строки
310 B
JavaScript
const {ipcRenderer} = require('electron')
|
|
|
|
document.addEventListener('DOMContentLoaded', (event) => {
|
|
var subframe = document.getElementById('pdf-frame')
|
|
if (subframe) {
|
|
subframe.contentWindow.addEventListener('pdf-loaded', (event) => {
|
|
ipcRenderer.send('pdf-loaded', event.detail)
|
|
})
|
|
}
|
|
})
|