moved global variables to proper file, added extra error logging for Chrome
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
; Notes/Extra Info/#Includes
|
||||
;------------------------------------------------
|
||||
|
||||
|
||||
|
||||
; Chrome Global Variables
|
||||
;------------------------------------------------
|
||||
; Chrome/Selenium
|
||||
global ChromeFilepath
|
||||
; Declare global variables here so they don't have to be declared in each script
|
||||
global ChromeTabsURLArray
|
||||
global DriverTitleArray
|
||||
global LastWebsitePostURL
|
||||
global CurrentTabURL
|
||||
global URLOfLastErrorPage
|
||||
|
||||
|
||||
|
||||
|
||||
; Chrome Related Functions
|
||||
|
||||
|
||||
|
||||
;------------------------------------------------
|
||||
GetChromeFilepath(){
|
||||
; ChromeFilepath is global variable
|
||||
; Establish Variable with Filepath to be used throughout the script
|
||||
@@ -12,6 +27,9 @@ GetChromeFilepath(){
|
||||
|
||||
if(FileExist(ChromePortableFilepath)){
|
||||
ChromeFilepath := ChromePortableFilepath
|
||||
|
||||
Message = Using Chromium Portable for Upload
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
}
|
||||
else {
|
||||
if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
|
||||
|
||||
Reference in New Issue
Block a user