trying to fix freeze bug

This commit is contained in:
Andrew Gundersen 2021-03-12 14:01:51 -06:00
commit c0b71a4a6f
7 changed files with 100 additions and 66 deletions

View file

@ -3,6 +3,7 @@
import { BrowserWindow, ipcMain } from "electron";
import { createProtocol } from "vue-cli-plugin-electron-builder/lib";
import { backgroundMitt } from './emitter';
import { RenderMessage } from "@/types/message/index";
import * as path from "path";
interface WindowSettings {
@ -11,15 +12,6 @@ interface WindowSettings {
resizable: boolean;
}
interface RenderMessage {
content: string;
context: string;
subContext: string;
modifiers: string;
time: string;
id: string;
}
interface IpcRendererPayload {
endpoint: string;
message: RenderMessage | null;