Preact: Fix auto-show spoilers (#2389)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

This commit is contained in:
dot-Comfey 2025-04-20 23:35:23 -07:00 committed by GitHub
parent 48cb201300
commit 2c6f962d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1310,7 +1310,7 @@ export class BattleLog {
str = str.replace(/<a[^>]*>/g, '<u>').replace(/<\/a>/g, '</u>');
}
if (options.hidespoiler) {
str = str.replace(/<span class="spoiler">/g, '<span class="spoiler spoiler-shown">');
str = str.replace(/<span class="spoiler">/g, '<span class="spoiler-shown">');
}
if (options.hidegreentext) {
str = str.replace(/<span class="greentext">/g, '<span>');

View File

@ -1,6 +1,6 @@
{
"compilerOptions": {
"lib": ["dom", "es6", "es2016.array.include", "es2017.object"],
"lib": ["dom", "dom.iterable", "es6", "es2016.array.include", "es2017.object"],
"noEmit": true,
"target": "esnext",
"module": "None",