Added loadJSFrontend

This commit is contained in:
booploops 2022-02-18 16:46:40 -08:00
parent 6638e2dc04
commit e2a8b803e5

View file

@ -83,6 +83,10 @@ export class utils {
return bw.win return bw.win
} }
static loadJSFrontend(path: string): void {
bw.win.webContents.executeJavaScript(fs.readFileSync(path, "utf8"));
}
/** /**
* Playback Functions * Playback Functions
*/ */