mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04: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;
|
|
};
|