mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-01 22:47:01 +00:00
Update chrome.js
This commit is contained in:
parent
0512d35c24
commit
2c308bad31
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user