Fix use of GB.Wait().

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

[GB.QT5.WEBVIEW]
* BUG: Fix use of GB.Wait().
This commit is contained in:
gambas 2022-04-13 11:38:01 +02:00
parent 449ec02f61
commit 34846dbe31
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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)
{