Don't transition on initial pageload

This commit is contained in:
Matthias 2020-12-30 08:18:50 +01:00
parent 89bf430064
commit e756db5d1d

View File

@ -80,7 +80,7 @@ export default Vue.extend({
bw.forEach((style, index) => {
(bw[index] as any).disabled = true;
});
if (this.simple) {
if (this.simple && this.activeTheme) {
// Only transition if simple mode is active
document.documentElement.classList.add('ft-theme-transition');
window.setTimeout(() => {