Skip to content

Commit be31057

Browse files
committed
Uncheck all when switching to game layout
1 parent 3c506cd commit be31057

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/dashboard/checklist/main.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ export default class extends Vue {
107107
];
108108
109109
mounted(): void {
110-
// nodecg.listenFor('obsChangeScene', ({ scene }) => {
111-
// // reset the checkmarks if we change to the game layout
112-
// if (scene === this.obsConfig.names.scenes.gameLayout) {
113-
// this.resetChecks();
114-
// fetch('https://pusher.bsg.duncte123.nl/sendUncheck.php', {
115-
// mode: 'no-cors',
116-
// })
117-
// .catch(console.log);
118-
// }
119-
// });
110+
nodecg.listenFor('obsChangeScene', ({ scene }) => {
111+
// reset the checkmarks if we change to the game layout
112+
if (scene === this.obsConfig.names.scenes.gameLayout) {
113+
this.resetChecks();
114+
// fetch('https://pusher.bsg.duncte123.nl/sendUncheck.php', {
115+
// mode: 'no-cors',
116+
// })
117+
// .catch(console.log);
118+
}
119+
});
120120
121121
// channel.bind('audio-ready', (data: { ready: boolean }) => {
122122
// this.audioReady = data.ready;

0 commit comments

Comments
 (0)