Commit beb13883 authored by Tasso Evangelista's avatar Tasso Evangelista

Move app user model ID definition to background process

parent 3f85885d
......@@ -14,7 +14,5 @@ Bugsnag.metaData = {
Bugsnag.appVersion = app.getVersion();
app.setAppUserModelId('chat.rocket');
window.$ = window.jQuery = require('./vendor/jquery-3.1.1');
start();
......@@ -85,6 +85,12 @@ app.on('open-url', (event, url) => {
addServers([url]);
});
app.on('window-all-closed', () => {
app.quit();
});
app.setAppUserModelId('chat.rocket');
app.on('ready', () => {
unsetDefaultApplicationMenu();
setUserDataPath();
......@@ -101,10 +107,6 @@ app.on('ready', () => {
autoUpdate();
});
app.on('window-all-closed', () => {
app.quit();
});
ipcMain.on('getSystemIdleTime', (event) => {
event.returnValue = idle.getIdleTime();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment