mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update chrome.js
This commit is contained in:
parent
5e5f088dbb
commit
852365cc1e
|
@ -196,8 +196,9 @@ var ChromeObject = function() {
|
||||||
var text = FILE.readFile(filename, "utf-8");
|
var text = FILE.readFile(filename, "utf-8");
|
||||||
var lines = text.split(/\r?\n/);
|
var lines = text.split(/\r?\n/);
|
||||||
for (var i = 0; i < lines.length; i++) {
|
for (var i = 0; i < lines.length; i++) {
|
||||||
if (lines[i].trim() !== "") {
|
var line = lines[i].trim();
|
||||||
this.userAgents.push(lines[i]);
|
if (line !== "") {
|
||||||
|
this.userAgents.push(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user