added saving
This commit is contained in:
@@ -20,7 +20,7 @@ export function createBeatStore() {
|
||||
const activeBeatIndex = ref(0);
|
||||
const activeBeat = computed<Beat | null>(() => beats.value[activeBeatIndex.value] ?? null);
|
||||
const autoSave = ref(true);
|
||||
const orientation = ref<'horizontal' | 'vertical' | null>(null);
|
||||
const orientation = ref<'horizontal' | 'vertical'>('horizontal');
|
||||
|
||||
function resetActiveBeat(): void {
|
||||
const current = activeBeat.value;
|
||||
@@ -51,7 +51,7 @@ export function createBeatStore() {
|
||||
localStorage.setItem("drum-slayer-save", JSON.stringify({
|
||||
beats: serials,
|
||||
activeBeatIndex: activeBeatIndex.value,
|
||||
orientation: orientation.value,
|
||||
orientation: orientation.value ?? 'horizontal',
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user