✨ (persistance) persist user choices
Lazy load youtube video
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ref, computed, watch } from '@vue/composition-api'
|
||||
import { StopwatchState } from '@/types/StopwatchState'
|
||||
import { notify } from '@/utils/notification'
|
||||
import { useInterval } from './useInterval'
|
||||
|
||||
const format = (num: number) => {
|
||||
return num.toString().padStart(2, '0')
|
||||
@@ -16,7 +17,7 @@ const formatSeconds = (seconds: number) => {
|
||||
export const useTimer = () => {
|
||||
const timeState = ref<StopwatchState>('stopped')
|
||||
const seconds = ref(0)
|
||||
const interval = ref(5)
|
||||
const { interval } = useInterval()
|
||||
const sessionSeconds = ref(interval.value * 60)
|
||||
const isDev1Turn = ref(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user