get-window-load-settings.js
1 const { remote } = require('electron'); 2 3 let windowLoadSettings = null; 4 5 module.exports = () => { 6 if (!windowLoadSettings) { 7 windowLoadSettings = JSON.parse(remote.getCurrentWindow().loadSettingsJSON); 8 } 9 return windowLoadSettings; 10 };