9 lines
280 B
JavaScript
9 lines
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 === "win32" ? true : false);
|
|
}
|
|
|
|
module.exports.store = store;
|