Skip to content

Commit

Permalink
lilfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Delusoire committed Jul 12, 2024
1 parent 369cff1 commit 052b22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/better-lyrics/mix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function (transformer: Transformer) {

str = str.replace(
/([a-zA-Z_\$][\w\$]*)\??\.hasLyrics\)return null;/,
'$1?.hasLyrics){$1??={};$1.hasLyrics=true;$1.colors??={activeText:"rgb(255, 255, 255)",background:"rgb(100, 100, 100)",text:"rgb(0, 0, 0)"};}',
'$1?.hasLyrics){if(!$1) return null;$1.hasLyrics=true;$1.colors??={activeText:"rgb(255, 255, 255)",background:"rgb(100, 100, 100)",text:"rgb(0, 0, 0)"};}',
);

emit();
Expand Down

0 comments on commit 052b22f

Please sign in to comment.