Skip to content

Commit

Permalink
fix TypeError in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilWun committed Aug 5, 2024
1 parent 9945720 commit a3abb2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class PluginSidebarComponent implements OnInit, OnDestroy {
let caller: (calback: () => void) => void = window.requestIdleCallback;
if (caller == null) {
// fix for safari/older browsers
caller = Promise.resolve().then;
caller = (c) => Promise.resolve().then(c);
}
caller(() => {
groupElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
Expand Down

0 comments on commit a3abb2e

Please sign in to comment.