Commit 34846dbe authored by gambas's avatar gambas
Browse files

Fix use of GB.Wait().

[GB.GTK3.WEBVIEW]
* BUG: Fix use of GB.Wait().

[GB.QT5.WEBVIEW]
* BUG: Fix use of GB.Wait().
parent 449ec02f
Pipeline #515815785 passed with stage
in 22 minutes and 15 seconds
......@@ -393,7 +393,7 @@ BEGIN_METHOD(WebView_ExecJavascript, GB_STRING script)
webkit_web_view_run_javascript(WIDGET, script, NULL, (GAsyncReadyCallback)cb_javascript_finished, (gpointer)THIS);
while(THIS->js_running)
GB.Wait(0);
GB.Wait(-1);
if (THIS->js_error)
{
......
......@@ -447,7 +447,7 @@ BEGIN_METHOD(WebView_ExecJavascript, GB_STRING script)
WIDGET->page()->runJavaScript(QSTRING_ARG(script), cb_javascript_finished);
while(_js_running)
GB.Wait(0);
GB.Wait(-1);
if (_js_error)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment