Update chrome.js

This commit is contained in:
Namhyeon Go 2022-08-28 23:04:47 +09:00 committed by GitHub
parent 3ea5b32d62
commit ae0cba0117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1174,6 +1174,10 @@ var ChromeObject = function(interfaces) {
}; };
this.__escape = function(value) { this.__escape = function(value) {
var pos = value.indexOf("__escaped:");
if (pos === 0)
return 'decodeURIComponent("' + value.substring(10) + '")';
else
return 'decodeURIComponent("' + encodeURIComponent(value) + '")'; return 'decodeURIComponent("' + encodeURIComponent(value) + '")';
}; };