successfully imports nodeaudio, add yarnrc.yml for registry config

This commit is contained in:
Andrew Gundersen 2021-08-19 15:11:14 -05:00
commit c52ea2bcd2
10 changed files with 302 additions and 45224 deletions

View file

@ -5,11 +5,11 @@
"use strict";
import { app, protocol } from "electron";
import { app, protocol, globalShortcut } from "electron";
import createWindow from "./window";
import main from "./main";
import { backgroundMitt } from '@/composables/useEmitter';
import {setWindowOpen, getWindowOpen } from './store';
import { setWindowOpen, getWindowOpen } from './store';
console.log('Starting Crimata electron app.');
@ -30,6 +30,10 @@ app.on("ready", async () => {
await main();
});
app.on("will-quit", () => {
globalShortcut.unregisterAll();
});
// Must keep to ensure app doesn't quit on close.
app.on("before-quit", async () => {
});