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:
parent
449ec02f61
commit
34846dbe31
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user