mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-19 23:30:56 +00:00
Update chrome.js
This commit is contained in:
parent
0512d35c24
commit
2c308bad31
|
@ -461,8 +461,8 @@ var ChromeObject = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getCurrentUrl = function() {
|
this.getCurrentUrl = function() {
|
||||||
var response = this.evaluate('location.href');
|
var page = this.getPageById(this.pageId);
|
||||||
return JSON.parse(response).result.result.value;
|
return page.url;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.create();
|
this.create();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user