minor change in saving logic
This commit is contained in:
@ -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) {
|
||||||
|
|||||||
@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user