mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Fix auto-show spoilers (#2389)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
48cb201300
commit
2c6f962d8f
|
|
@ -1310,7 +1310,7 @@ export class BattleLog {
|
||||||
str = str.replace(/<a[^>]*>/g, '<u>').replace(/<\/a>/g, '</u>');
|
str = str.replace(/<a[^>]*>/g, '<u>').replace(/<\/a>/g, '</u>');
|
||||||
}
|
}
|
||||||
if (options.hidespoiler) {
|
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) {
|
if (options.hidegreentext) {
|
||||||
str = str.replace(/<span class="greentext">/g, '<span>');
|
str = str.replace(/<span class="greentext">/g, '<span>');
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["dom", "es6", "es2016.array.include", "es2017.object"],
|
"lib": ["dom", "dom.iterable", "es6", "es2016.array.include", "es2017.object"],
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"module": "None",
|
"module": "None",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user