Rename Errors
to GlobalErrors
for clarity
This commit is contained in:
parent
2575196617
commit
3dffdc3f0b
2 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@ const addUnhandledErrorHandler = require('electron-unhandled');
|
||||||
const Errors = require('./types/errors');
|
const Errors = require('./types/errors');
|
||||||
|
|
||||||
|
|
||||||
// addGlobalHandler :: Unit -> Unit
|
// addHandler :: Unit -> Unit
|
||||||
exports.addGlobalHandler = () => {
|
exports.addHandler = () => {
|
||||||
addUnhandledErrorHandler({
|
addUnhandledErrorHandler({
|
||||||
logger: (error) => {
|
logger: (error) => {
|
||||||
console.error(
|
console.error(
|
4
main.js
4
main.js
|
@ -18,12 +18,12 @@ const packageJson = require('./package.json');
|
||||||
|
|
||||||
const autoUpdate = require('./app/auto_update');
|
const autoUpdate = require('./app/auto_update');
|
||||||
const createTrayIcon = require('./app/tray_icon');
|
const createTrayIcon = require('./app/tray_icon');
|
||||||
const Errors = require('./js/modules/errors');
|
const GlobalErrors = require('./js/modules/global_errors');
|
||||||
const logging = require('./app/logging');
|
const logging = require('./app/logging');
|
||||||
const windowState = require('./app/window_state');
|
const windowState = require('./app/window_state');
|
||||||
const { createTemplate } = require('./app/menu');
|
const { createTemplate } = require('./app/menu');
|
||||||
|
|
||||||
Errors.addGlobalHandler();
|
GlobalErrors.addHandler();
|
||||||
|
|
||||||
const appUserModelId = `org.whispersystems.${packageJson.name}`;
|
const appUserModelId = `org.whispersystems.${packageJson.name}`;
|
||||||
console.log('Set Windows Application User Model ID (AUMID)', { appUserModelId });
|
console.log('Set Windows Application User Model ID (AUMID)', { appUserModelId });
|
||||||
|
|
Loading…
Reference in a new issue