global.p3x.onenote.ng.run((p3xOnenotePrompt, p3xOnenoteToast, $rootScope, $animate, $mdMedia) => {
$animate.enabled(false)
global.p3x.onenote.prompt = p3xOnenotePrompt;
global.p3x.onenote.toast = p3xOnenoteToast;
global.p3x.onenote.root = $rootScope
$rootScope.$mdMedia = $mdMedia
p3x.onenote.toast.action(p3x.onenote.lang.slow)
$rootScope.p3x = {
onenote: {
go: (action) => {
global.p3x.onenote.webview[action === 'back' ? 'goBack' : 'goForward']()
},
canGo: (action) => {
if (action === 'back') {
return global.p3x.onenote.webview && global.p3x.onenote.webview.canGoBack()
}
return global.p3x.onenote.webview && global.p3x.onenote.webview.canGoForward()
},
lang: global.p3x.onenote.lang,
location: undefined,
copyLocation: require('./action/multi-action/get-location'),
donate: () => {
shell.openExternal('https://paypal.me/patrikx3')
},
zoom: (zoom) => {