- onenote.git
- src
- electron
- window
- onenote
- load.js
This file ( 738B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
const { ipcRenderer } = require('electron');
global.p3x = {
onenote: {
webview: undefined,
lang: require('../../../translation/default'),
data: {
url: 'about:blank',
proxy: '',
}
}
}
require('./vex');
document.title = global.p3x.onenote.lang.title;
window.p3xOneNoteOnLoad = function() {
const webview = document.getElementById("p3x-onenote-webview");
global.p3x.onenote.webview = webview;
webview.focus()
const ipcHandler = require('./ipc/handler');
ipcHandler({
webview: webview,
})
const eventHandler = require('./event/handler');
eventHandler({
webview: webview,
})
ipcRenderer.send('did-finish-load');
}