Skip to content

Commit

Permalink
URL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Apr 29, 2024
1 parent 9232bec commit dfc3fb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function loadRules() { // Load rules
}

async function update(name) { // Update `name.min.json`, return true if updated
const url = `https://cdn.jsdelivr.net/gh/PRO-2684/pURLfy-rules/${name}.min.json`;
const url = `https://cdn.jsdelivr.net/gh/PRO-2684/pURLfy-rules@latest/${name}.min.json`;
const localPath = path.join(rulesPath, `${name}.min.json`);
const etag = fs.existsSync(localPath) ? config.etags[name] ?? "" : "";
try {
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "pURLfy",
"slug": "purlfy",
"description": "🧹 链接净化",
"version": "0.2.6",
"version": "0.2.7",
"icon": "./icons/icon.svg",
"thumb": "./icons/thumb.svg",
"authors": [
Expand All @@ -17,7 +17,7 @@
"repo": "PRO-2684/LiteLoaderQQNT-pURLfy",
"branch": "main",
"release": {
"tag": "v0.2.6",
"tag": "v0.2.7",
"file": "purlfy-release.zip"
}
},
Expand Down

0 comments on commit dfc3fb7

Please sign in to comment.