File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,14 +371,14 @@ Func _NetWebView2_CleanUp(ByRef $oWebV2M, ByRef $oJSBridge)
371371 $ERR = 2
372372 $EXT = 1
373373 $MSG = " ! NetWebView2Lib.WebView2Manager object has invalid ProgID : #SLN=" & @ScriptLineNumber
374- ElseIf Not IsObj ($oJSBridge ) Then
375- $ERR = 3
376- $EXT = 2
377- $MSG = " ! NetWebView2Lib.WebView2Bridge is not object : #SLN=" & @ScriptLineNumber
378- ElseIf ObjName ($oJSBridge , $OBJ_PROGID ) <> " NetWebView2Lib.WebView2Bridge" Then
379- $ERR = 4
380- $EXT = 2
381- $MSG = " ! NebView2Lib.WebView2Bridge object has invalid ProgID : #SLN=" & @ScriptLineNumber
374+ ; ~ ElseIf Not IsObj($oJSBridge) Then ; $oJSBridge usage is optional
375+ ; ~ $ERR = 3
376+ ; ~ $EXT = 2
377+ ; ~ $MSG = " ! NetWebView2Lib.WebView2Bridge is not object : #SLN=" & @ScriptLineNumber
378+ ; ~ ElseIf ObjName($oJSBridge, $OBJ_PROGID) <> "NetWebView2Lib.WebView2Bridge" Then ; $oJSBridge usage is optional
379+ ; ~ $ERR = 4
380+ ; ~ $EXT = 2
381+ ; ~ $MSG = " ! NebView2Lib.WebView2Bridge object has invalid ProgID : #SLN=" & @ScriptLineNumber
382382 Else
383383 _NetWebView2_SetLockState($oWebV2M , True )
384384 $RET = $oWebV2M .Cleanup()
You can’t perform that action at this time.
0 commit comments