Skip to content

Commit

Permalink
read cards after opening a booster
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed May 4, 2024
1 parent 60ac29a commit 4d1545e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/background/onLabel/onClientSceneChange.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import postChannelMessage from "../../broadcastChannel/postChannelMessage";
import readCards from "../../reader/readCards";
import LogEntry, { ClientSceneChange } from "../../types/logDecoder";

interface Entry extends LogEntry {
Expand All @@ -14,6 +15,10 @@ export default function onClientSceneChange(entry: Entry): void {
});
}

if (json.fromSceneName === "BoosterChamber") {
readCards();
}

postChannelMessage({
type: "SET_SCENE",
value: json,
Expand Down

0 comments on commit 4d1545e

Please sign in to comment.