diff --git a/src/migrate.js b/src/migrate.js index 7ae8788..29c577f 100644 --- a/src/migrate.js +++ b/src/migrate.js @@ -189,8 +189,8 @@ async function fromVersion26() { } else { - const openProfileLines = [...profile, 'profile-animation-type=1']; - const closeProfileLines = [...profile, 'profile-animation-type=2']; + const openProfileLines = [...profileLines, 'profile-animation-type=1']; + const closeProfileLines = [...profileLines, 'profile-animation-type=2']; // Add all relevant effects. openEffects.forEach(e => openProfileLines.push(e + '-enable-effect=true')); @@ -202,6 +202,10 @@ async function fromVersion26() { closeProfileLines.push('fire-enable-effect=false'); } + if (!openEffects.includes('fire')) { + openProfileLines.push('fire-enable-effect=false'); + } + // Print and save the new profiles. const openProfile = openProfileLines.join('\n'); const closeProfile = closeProfileLines.join('\n');