Update chrome.js

This commit is contained in:
Namhyeon Go 2021-06-20 05:56:20 +09:00 committed by GitHub
parent 1aef40104a
commit 2d393b6a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,20 +105,20 @@ var ChromeObject = function() {
this.open = function(url) {
this.setProfile(this.profileName, this.installedDir);
// 파일이 없는 경우, 32비트 설치 폴더에 위치하는지 한번 더 확인
// if the file does not exists, Check the 32bit installation folder again
if (!FILE.fileExists(this.binPath)) {
this.workingDirectory = SYS.getEnvString("PROGRAMFILES(X86)") + "\\Google\\Chrome\\Application";
this.binPath = SYS.getEnvString("PROGRAMFILES(X86)") + "\\Google\\:installedDir\\Application\\chrome.exe";
this.setProfile(this.profileName, this.installedDir);
}
// 파일 찾기
// find profile
if (!FILE.fileExists(this.binPath)) {
console.error("ChromeObject.open() -> '" + this.profileName + "' 존재하지 않는 프로파일입니다. 생성 후 사용해주세요.");
console.error("ChromeObject.open() -> '" + this.profileName + "' profile does not exists. You have to create it.");
return this;
}
// 바로가기 생성
// create shoutcut to desktop
this.createShoutcut();
/*