mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update chrome.js
This commit is contained in:
parent
3ea5b32d62
commit
ae0cba0117
|
@ -1174,7 +1174,11 @@ var ChromeObject = function(interfaces) {
|
|||
};
|
||||
|
||||
this.__escape = function(value) {
|
||||
return 'decodeURIComponent("' + encodeURIComponent(value) + '")';
|
||||
var pos = value.indexOf("__escaped:");
|
||||
if (pos === 0)
|
||||
return 'decodeURIComponent("' + value.substring(10) + '")';
|
||||
else
|
||||
return 'decodeURIComponent("' + encodeURIComponent(value) + '")';
|
||||
};
|
||||
|
||||
this.prompt = function(s) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user