Skip to content

Commit 75ad089

Browse files
authored
Update NetWebView2Lib.au3
1 parent 4614ef4 commit 75ad089

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

NetWebView2Lib.au3

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ EndFunc ;==>_NetWebView2_CreateManager
181181
; $i_ZoomFactor - [optional] an integer value. Default is 1.0.
182182
; $s_BackColor - [optional] a string value. Default is "0x2B2B2B".
183183
; $b_InitConsole - [optional] a boolean value. Default is False.
184-
; Return values .: None
184+
; Return values .: $iInit
185185
; Author ........: mLipok, ioa747
186186
; Modified ......:
187187
; Remarks .......:
@@ -221,7 +221,7 @@ Func _NetWebView2_Initialize($oWebV2M, $hUserGUI, $s_ProfileDirectory, $i_Left =
221221
EndIf
222222
If TimerDiff($hTimer) >= $iTimeOut_ms Then Return SetError(1, 0, '')
223223
Until $oWebV2M.IsReady Or $iMessage = $NETWEBVIEW2_MESSAGE__INIT_READY
224-
If Not __NetWebView2_WaitForReadyState($oWebV2M, $hTimer, $iTimeOut_ms) Then Return SetError(2, 0, '')
224+
;~ If Not __NetWebView2_WaitForReadyState($oWebV2M, $hTimer, $iTimeOut_ms) Then Return SetError(2, 0, '')
225225
#EndRegion ; After Initialization wait for the engine to be ready before navigating
226226

227227
; WebView2 Configuration
@@ -235,7 +235,7 @@ Func _NetWebView2_Initialize($oWebV2M, $hUserGUI, $s_ProfileDirectory, $i_Left =
235235
EndIf
236236

237237
If @error Then __NetWebView2_Log(@ScriptLineNumber, $s_Prefix & " !!! Manager Creation ERROR", 1)
238-
Return SetError(@error, $oWebV2M.GetBrowserProcessId(), '')
238+
Return SetError(@error, $oWebV2M.GetBrowserProcessId(), $iInit)
239239
EndFunc ;==>_NetWebView2_Initialize
240240

241241
; #INTERNAL_USE_ONLY# ===========================================================================================================
@@ -2353,3 +2353,4 @@ EndFunc ;==>__NetWebView2_Events__OnFrameWebMessageReceived
23532353
#EndRegion ; === NetWebView2Lib UDF === EVENT HANDLERS * #TODO ===
23542354

23552355
#EndRegion ; === NetWebView2Lib UDF === EVENT HANDLERS ===
2356+

0 commit comments

Comments
 (0)