9 lines
No EOL
280 B
JavaScript
9 lines
No EOL
280 B
JavaScript
const Store = require('electron-store');
|
|
const store = new Store();
|
|
|
|
if (store.has('drawCustomTitleBar') !== true) {
|
|
// Default to false if on MacOS, otherwise true
|
|
store.set('drawCustomTitleBar', (process.platform !== 'darwin') ? true : false)
|
|
}
|
|
|
|
module.exports.store = store |