- onenote.git
- src
- electron
- main
- app-events.js
This file ( 656B ) 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 {app} = require('electron')
app.on('ready', global.p3x.onenote.createWindow.onenote);
app.on('window-all-closed', function () {
// if (process.platform !== 'darwin') {
app.quit();
// }
});
app.on('activate', function () {
if (global.p3x.onenote.window.onenote === null) {
global.p3x.onenote.createWindow.onenote();
}
});
//FIXME: webview new-window changed
app.on('web-contents-created', function (webContentsCreatedEvent, contents) {
if (contents.getType() === 'webview') {
contents.on('new-window', function (newWindowEvent, url) {
newWindowEvent.preventDefault();
});
}
});