change function style to const

This commit is contained in:
Spedon
2023-03-16 20:18:11 +08:00
parent 96b75abc7d
commit 19e89db88a
6 changed files with 17 additions and 17 deletions

View File

@@ -87,7 +87,7 @@ async function enterOverlay(): Promise<void> {
}
// initialization
export function trackMouseInit(): void {
export const trackMouseInit = (): void => {
window.addEventListener('mousemove', handleOnMove)
layers[4].addEventListener(
'click',
@@ -100,12 +100,12 @@ export function trackMouseInit(): void {
)
}
export function globalIndexDec(): void {
export const globalIndexDec = (): void => {
globalIndex--
preloader(globalIndex)
}
export function globalIndexInc(): void {
export const globalIndexInc = (): void => {
globalIndex++
preloader(globalIndex)
}