Updated chrome function to check for chrome filepath variable before setting it based on hardcoded path
This commit is contained in:
@@ -23,6 +23,8 @@ GetChromeFilepath(){
|
||||
; ChromeFilepath is global variable
|
||||
; Establish Variable with Filepath to be used throughout the script
|
||||
|
||||
if(ChromeFilepath = ""){
|
||||
|
||||
ChromePortableFilepath = %A_ScriptDir%\Lib\chrome-win64\chrome.exe
|
||||
|
||||
if(FileExist(ChromePortableFilepath)){
|
||||
@@ -38,6 +40,7 @@ GetChromeFilepath(){
|
||||
if(FileExist("C:\Program Files\Google\Chrome\Application\chrome.exe"))
|
||||
ChromeFilepath = C:\Program Files\Google\Chrome\Application\chrome.exe
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GetChromeVersion(){
|
||||
|
||||
Reference in New Issue
Block a user