Change ()=>{} into ()=>0

This commit is contained in:
djmaze 2021-08-13 09:58:43 +02:00
parent 2d87b52c07
commit d536b5eeee
10 changed files with 21 additions and 23 deletions

View file

@ -83,7 +83,7 @@ let __themeTimer = 0,
* @param {function=} themeTrigger = noop
* @returns {void}
*/
export function changeTheme(value, themeTrigger = ()=>{}) {
export function changeTheme(value, themeTrigger = ()=>0) {
const themeStyle = elementById('app-theme-style'),
clearTimer = () => {
__themeTimer = setTimeout(() => themeTrigger(SaveSettingsStep.Idle), 1000);