This file ( 898B ) 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.
import registry from '../registry.mjs'
const { ipcRenderer } = window.electronShim;
export default async (data) => {
let valueProxy = '';
let cancelled = false;
try {
valueProxy = await registry.prompt.setProxy();
valueProxy = valueProxy === undefined ? '' : valueProxy.trim();
} catch (e) {
if (e !== undefined) {
console.error(e);
} else {
cancelled = true;
}
} finally {
if (!cancelled) {
registry.data.proxy = valueProxy;
if (valueProxy === '') {
registry.toast.setProxy.clear();
} else {
registry.toast.setProxy.set(valueProxy);
}
ipcRenderer.send('p3x-onenote-save', registry.data);
const { default: loadProxy } = await import('./load-proxy.mjs');
loadProxy();
}
}
};