mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 12:11:04 +00:00
Update chrome.js
This commit is contained in:
parent
1aef40104a
commit
2d393b6a10
|
@ -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();
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user