diff options
| author | Mistivia <i@mistivia.com> | 2025-03-19 16:50:07 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-19 16:50:07 +0800 |
| commit | d66ca8ad7938ebcaaa0f379a9c760290ac8314b1 (patch) | |
| tree | 5fea075f6fc03f7cc870ed5320a91f6e4ef6e718 /src/deck.js | |
| parent | 5a7e89205e87bc1858a470f76c2b52c711bb55f3 (diff) | |
fix format bug
Diffstat (limited to 'src/deck.js')
| -rw-r--r-- | src/deck.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/deck.js b/src/deck.js index 7b01103..7102986 100644 --- a/src/deck.js +++ b/src/deck.js @@ -212,12 +212,10 @@ function initDeck() { } function setFormat(newFormat) { - if (newFormat === 'none' || newFormat === 'ocg') { - localStorage.setItem('format', newFormat); - formatState = newFormat; - format.set(newFormat); - setDeck(deckState); - } + localStorage.setItem('format', newFormat); + formatState = newFormat; + format.set(newFormat); + setDeck(deckState); } export { |
