Skip to content
Snippets Groups Projects
Verified Commit 7b4e6181 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

fix: update log functions

parent f8d8353c
No related branches found
No related tags found
1 merge request!10QDS-11148 Test with Qt 6.6 and EMSKD 3.1.37
Pipeline #65151 passed
......@@ -352,8 +352,9 @@ void DesignViewer::printError(const QString &message, const QString &fileName, i
QString escaped = message;
escaped.replace("'", "\'");
escaped.replace("\n", "\\n");
emscripten_run_script("alert('" + escaped.toUtf8() + "');");
emscripten_run_script("location.hash = ''; location.reload();");
emscripten::val location = emscripten::val::global("window")["location"];
location.set("hash", std::string());
location.call<void>("reload");
}
void DesignViewer::showAppWindow()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment