Skip to content

Commit

Permalink
fix .yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xxf098 committed Aug 4, 2022
1 parent 3b50f08 commit 03b923f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
},
handleCopySub: async function () {
// url
if (this.subscription.trim().startsWith("http") && !this.subscription.trim().endsWith("yaml")) {
if (this.subscription.trim().startsWith("http") && !this.subscription.trim().endsWith(".yaml") && !!this.subscription.trim().endsWith(".yml")) {
await navigator.clipboard.writeText(this.subscription.trim())
this.$message.success("Copy Subscription succeed!");
return
Expand Down

0 comments on commit 03b923f

Please sign in to comment.