minor change in saving logic

This commit is contained in:
2023-11-14 13:03:42 +01:00
parent 9dc6456f9f
commit 31f5afe64b
2 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export const installWindowBehaviors = (
}); });
window.addEventListener("visibilitychange", (event) => { window.addEventListener("visibilitychange", (event) => {
event.preventDefault(); event.preventDefault();
saveBeforeExit(app); saveState(app);
}); });
if (preventMultipleTabs) { if (preventMultipleTabs) {

View File

@ -178,6 +178,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
); );
// @ts-ignore // @ts-ignore
const totalDurationInPulses = adjustedDurations.reduce( const totalDurationInPulses = adjustedDurations.reduce(
// @ts-ignore
(acc, duration) => acc + duration * ppqn, (acc, duration) => acc + duration * ppqn,
0 0
); );