Update chrome.js

This commit is contained in:
Namhyeon Go 2024-09-02 21:13:22 +09:00 committed by GitHub
parent ffbb560598
commit ecf12aa83f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -699,9 +699,15 @@ var ChromeObject = function() {
};
this.getTitle = function() {
if (this.debuggingPort > 0) {
return this.getEvaluatedValue('document.title');
if (!(this.debuggingPort > 0))
return;
var i = 0, k = 60, title = "";
while (i < k && title == "") {
title = this.getEvaluatedValue('document.title')
}
return title;
};
this.getScreenPosition = function() {
@ -1406,7 +1412,7 @@ exports.startDebugInPrivate = function(url, proxy, profileName, debuggingPort, i
;
};
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4.10";
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.4.11";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;