Skip to content

Commit

Permalink
Prefer versioned theme CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Apr 22, 2024
1 parent c12dd64 commit 7a1fff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/r4-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class R4App extends LitElement {
if (this.cdn?.length > 4) {
return `${this.cdn}/dist/themes/${file}`
} else if (this.cdn) {
return `https://cdn.jsdelivr.net/npm/@radio4000/components@latest/dist/themes/${file}`
return `https://cdn.jsdelivr.net/npm/@radio4000/components@${this.version || 'latest'}/dist/themes/${file}`
} else {
return `/themes/${file}`
}
Expand Down

0 comments on commit 7a1fff8

Please sign in to comment.