Skip to content

Commit

Permalink
Change: RELOAD_URLで飛ばすページをabout:blankにする (VOICEVOX#2121)
Browse files Browse the repository at this point in the history
* Change: win.reload()を使う

* Change: about:blankにする
  • Loading branch information
sevenc-nanashi authored Jun 25, 2024
1 parent d2275f9 commit 5eb01a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -977,8 +977,8 @@ ipcMainHandle("VALIDATE_ENGINE_DIR", (_, { engineDir }) => {
ipcMainHandle("RELOAD_APP", async (_, { isMultiEngineOffMode }) => {
win.hide(); // FIXME: ダミーページ表示のほうが良い

// FIXME: 同じようなURLだとスーパーリロードされないことがあるので一度ダミーページを読み込む
await win.loadURL(firstUrl + "dummypage");
// 一旦適当なURLに飛ばしてページをアンロードする
await win.loadURL("about:blank");

log.info("Checking ENGINE status before reload app");
const engineCleanupResult = cleanupEngines();
Expand Down

0 comments on commit 5eb01a9

Please sign in to comment.