Skip to content

Commit

Permalink
v1.1.1 紧急修复
Browse files Browse the repository at this point in the history
  • Loading branch information
lingbopro committed May 12, 2024
1 parent f228919 commit 87b7f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ try {
})
.then(() => {
IPs = sortArrayByItemProperty(IPs, "host");
newRecords = diff ? [] : JSON.parse(JSON.stringify(records));
let newRecords = diff ? [] : JSON.parse(JSON.stringify(records)); // PR #1 把这玩意的定义整没了...
IPs.forEach(function (currentValue, index) {
if (checkIPv4(currentValue.ip)) {
let recordIndex = getHostsRecordIndexByHost(
Expand All @@ -287,7 +287,7 @@ try {
console.log(`${appName}: This address (${currentValue.host}) may not exist, if you are sure it does not exist, please report an issue at https://github.com/lingbopro/easy-github-hosts/issues`);
}
});
newHostsContent = genHosts(newRecords);
let newHostsContent = genHosts(newRecords); // PR #1 把这玩意的定义也整没了,我真就
if (debug || noedit) {
console.debug(`${appName}: ${(debug && !noedit) ? "(debug) " : ""}${diff ? "Differences between new and old HOSTS file" : "New HOSTS file content"}:`);
console.debug(`${appName}: ${(debug && !noedit) ? "(debug) " : ""}============================================================`);
Expand Down

1 comment on commit 87b7f8b

@Minemetero
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

啊!嘿嘿嘿。。。

Please sign in to comment.