Update chrome.js

This commit is contained in:
Namhyeon Go 2021-07-21 11:41:43 +09:00 committed by GitHub
parent 0512d35c24
commit 2c308bad31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,8 +461,8 @@ var ChromeObject = function() {
};
this.getCurrentUrl = function() {
var response = this.evaluate('location.href');
return JSON.parse(response).result.result.value;
var page = this.getPageById(this.pageId);
return page.url;
};
this.create();