Skip to content

Commit

Permalink
fix: Reloading ImHex not working in the web version
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Oct 4, 2023
1 parent eb41622 commit 1c88c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
7 changes: 7 additions & 0 deletions main/gui/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ namespace {


#if defined(OS_WEB)

using namespace hex::init;

void saveFsData() {
Expand All @@ -137,6 +138,12 @@ namespace {

splashWindow->startStartupTasks();

EventManager::subscribe<RequestRestartImHex>([&] {
MAIN_THREAD_EM_ASM({
location.reload();
});
});

// Draw the splash window while tasks are running
emscripten_set_main_loop_arg([](void *arg) {
auto splashWindow = reinterpret_cast<WindowSplash*>(arg);
Expand Down
14 changes: 0 additions & 14 deletions test/serve.py

This file was deleted.

0 comments on commit 1c88c3a

Please sign in to comment.