[Client] Better transition

This commit is contained in:
syuilo
2019-03-05 20:45:19 +09:00
parent 467f68502a
commit 2c83a05e80
2 changed files with 2 additions and 4 deletions

View File

@ -47,7 +47,7 @@ export function applyTheme(theme: Theme, persisted = true) {
setTimeout(() => {
document.documentElement.classList.remove('changing-theme');
}, 500);
}, 1000);
// Deep copy
const _theme = JSON.parse(JSON.stringify(theme));