ec5082860e
* poly: remove completely * bootstrap: remove unused request require * asarUpdate: rewrite request -> https * moduleUpdater: rewrite request -> https * ui: fallback to channel instead of "custom" if no hash * index: set name to branch for obvious testing * config/backend: tweak source * moduleUpdater: fix rewrite * moduleUpdater: fix rewrite (x2) * moduleUpdater: follow redirects with rewrite * ci: start multi-branch rewrite * ci: upgrade node to 18.x * ci: rewrite version changing to use existing * ci: change release version getting to in file * ci: mess with yaml syntax * ci: revert to node 16.x, fix version wrapped in quotes * ci: fix invalid yaml * ci: yaml syntax fixing * ci: append to tag * ci: make pre-release unless nightly build * ci: add title nicening * asarUpdate: fix release suffix * asarUpdate: fix not following redirect * winFirst: don't remake shortcuts, tweaks * ui: add channel prefix if non-nightly * chore: prep for main branch
37 lines
750 B
JavaScript
37 lines
750 B
JavaScript
const { ipcMain, app, shell } = require('electron');
|
|
|
|
ipcMain.on('DISCORD_UPDATED_QUOTES', (e, c) => {
|
|
if (c === 'o') exports.open();
|
|
});
|
|
|
|
exports.open = () => {
|
|
const win = require('../utils/win')({
|
|
width: 500,
|
|
height: 650
|
|
}, 'config');
|
|
|
|
let config = settings.get('openasar', {});
|
|
config.setup = true;
|
|
settings.set('openasar', config);
|
|
settings.save();
|
|
|
|
ipcMain.on('cs', (e, c) => {
|
|
config = c;
|
|
settings.set('openasar', config);
|
|
settings.save();
|
|
});
|
|
|
|
ipcMain.on('cg', e => {
|
|
e.returnValue = config;
|
|
});
|
|
|
|
ipcMain.on('cr', () => {
|
|
settings.save();
|
|
app.relaunch();
|
|
app.exit();
|
|
});
|
|
|
|
ipcMain.on('of', () => {
|
|
shell.openPath(require('../paths').getUserData() + '/settings.json')
|
|
})
|
|
};
|