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() { this.getTitle = function() {
if (this.debuggingPort > 0) { if (!(this.debuggingPort > 0))
return this.getEvaluatedValue('document.title'); return;
var i = 0, k = 60, title = "";
while (i < k && title == "") {
title = this.getEvaluatedValue('document.title')
} }
return title;
}; };
this.getScreenPosition = function() { 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.AUTHOR = "abuse@catswords.net";
exports.global = global; exports.global = global;
exports.require = global.require; exports.require = global.require;