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

@@ -6,7 +6,7 @@ import { vwRefreshInit } from './overlay'
import { preloader } from './imageCache'
import { getDeviceType } from './utils'
function desktopInit(): void {
const desktopInit = (): void => {
preloader(0)
vwRefreshInit()
imgIndexSpanUpdate(0, imagesArrayLen)
@@ -14,7 +14,7 @@ function desktopInit(): void {
trackMouseInit()
}
function mobileInit(): void {
const mobileInit = (): void => {
console.log('mobile')
}