diff --git a/src/discord/window.ts b/src/discord/window.ts index c530a0e..0e30363 100644 --- a/src/discord/window.ts +++ b/src/discord/window.ts @@ -209,6 +209,9 @@ function doAfterDefiningTheWindow(passedWindow: BrowserWindow): void { if (!fs.existsSync(`${userDataPath}/disabled.txt`)) { fs.writeFileSync(path.join(userDataPath, "/disabled.txt"), ""); } + passedWindow.on("unresponsive", () => { + passedWindow.webContents.reload(); + }); passedWindow.webContents.on("did-finish-load", () => { fs.readdirSync(themesFolder).forEach((file) => { try {