Skip to content

Commit

Permalink
Don't show disabled plugin readmes (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
raiyni authored Feb 6, 2025
1 parent ec1441f commit fb90a12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/plugin-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const {

let repository = ''
let commit = ''
let disabled = false

response.split('\n').forEach(line => {
const kv = line.split('=')
Expand All @@ -77,9 +78,13 @@ export const {
if (kv[0] === 'commit') {
commit = kv[1]
}

if (kv[0] === 'disabled') {
disabled = true
}
})

if (!repository) {
if (!repository || disabled) {
return
}

Expand Down

0 comments on commit fb90a12

Please sign in to comment.