mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Reloading ImHex not working in the web version
This commit is contained in:
@@ -113,6 +113,7 @@ namespace {
|
||||
|
||||
|
||||
#if defined(OS_WEB)
|
||||
|
||||
using namespace hex::init;
|
||||
|
||||
void saveFsData() {
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user