Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amiika committed Nov 14, 2023
2 parents 563e6b1 + 31f5afe commit 3e967a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/WindowBehavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const installWindowBehaviors = (
});
window.addEventListener("visibilitychange", (event) => {
event.preventDefault();
saveBeforeExit(app);
saveState(app);
});

if (preventMultipleTabs) {
Expand Down
1 change: 1 addition & 0 deletions src/extensions/ArrayExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export const makeArrayExtensions = (api: UserAPI) => {
(_, index) => durations[index % durations.length]
);
const totalDurationInPulses = adjustedDurations.reduce(
// @ts-ignore
(acc, duration) => acc + duration * ppqn,
0
);
Expand Down

0 comments on commit 3e967a1

Please sign in to comment.