Update chrome.js

This commit is contained in:
Namhyeon Go 2022-01-11 20:19:59 +09:00 committed by GitHub
parent 5e5f088dbb
commit 852365cc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,8 +196,9 @@ var ChromeObject = function() {
var text = FILE.readFile(filename, "utf-8");
var lines = text.split(/\r?\n/);
for (var i = 0; i < lines.length; i++) {
if (lines[i].trim() !== "") {
this.userAgents.push(lines[i]);
var line = lines[i].trim();
if (line !== "") {
this.userAgents.push(line);
}
}
return this;