mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
11 lines
244 B
JavaScript
11 lines
244 B
JavaScript
const { remote } = require('electron');
|
|
|
|
let windowLoadSettings = null;
|
|
|
|
module.exports = () => {
|
|
if (!windowLoadSettings) {
|
|
windowLoadSettings = JSON.parse(remote.getCurrentWindow().loadSettingsJSON);
|
|
}
|
|
return windowLoadSettings;
|
|
};
|