extra error logging and message cleanups

main
Yuriy 2 years ago
parent 8a4c74ffaf
commit d499568370

@ -135,12 +135,12 @@ CreateArrayOfChromeTabs() {
Message = Creating an Array of All Chrome Tabs`n(Sometimes might get stuck for a short while if there is something loading in a tab) Message = Creating an Array of All Chrome Tabs`n(Sometimes might get stuck for a short while if there is something loading in a tab)
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
; TooltipThis(Message) ; TooltipThis(Message)
Message = Total Times looping through tabs: %TotalTabLoops% Message = Total Times looping through tabs to create Chrome Tabs Array: %TotalTabLoops%
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
Loop % TotalTabLoops { Loop % TotalTabLoops {
@ -157,7 +157,7 @@ CreateArrayOfChromeTabs() {
; exit after looping through 1 tab, if only 1 tab found in count ; exit after looping through 1 tab, if only 1 tab found in count
if(TotalTabsFound = 1 AND A_index > TotalTabsFound){ if(TotalTabsFound = 1 AND A_index > TotalTabsFound){
Message = Exiting Early after 1 loop. Only 1 tab found Message = Exiting Early after 1 loop. Only 1 tab found
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
; DevModeMsgBox(message) ; DevModeMsgBox(message)
break break
} }
@ -260,6 +260,9 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
; extract Base URL from Full URL ; extract Base URL from Full URL
URLBase := ExtractBaseURL(URL) URLBase := ExtractBaseURL(URL)
Message = Checking for URLBase: %URLBase% within ChromeTabsURLArray
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
; if URLBase is NOT a substring within any of the values in the array ; if URLBase is NOT a substring within any of the values in the array
if(!HasSubstringVal(ChromeTabsURLArray, URLBase)) if(!HasSubstringVal(ChromeTabsURLArray, URLBase))

Loading…
Cancel
Save