6d01952e66
* chore: replace standard with eslint-config-standard This adds support for --cache so linting JS only takes ~1 second and only lints things that changed It also allows us to add custom linting rules * chore: add eslint-plugin-mocha and enable the no-exclusive-tests rule This will block anyone from pushing / merging a `.only` test or describe
15 lines
484 B
JavaScript
15 lines
484 B
JavaScript
const { ipcRenderer } = require('electron')
|
|
|
|
document.addEventListener('DOMContentLoaded', (event) => {
|
|
var outerFrame = document.querySelector('#outer-frame')
|
|
if (outerFrame) {
|
|
outerFrame.onload = function () {
|
|
var pdframe = outerFrame.contentWindow.document.getElementById('pdf-frame')
|
|
if (pdframe) {
|
|
pdframe.contentWindow.addEventListener('pdf-loaded', (event) => {
|
|
ipcRenderer.send('pdf-loaded', event.detail)
|
|
})
|
|
}
|
|
}
|
|
}
|
|
})
|