javascript: fix missign argument to catch

Some browers complain about this.
This commit is contained in:
Pierre de La Morinerie 2020-04-08 16:53:46 +02:00
parent 444732b117
commit 72d003b62c

View file

@ -1,6 +1,6 @@
try {
window.scroll({ top: 0, left: 0, behavior: 'smooth' });
} catch {
} catch(e) {
window.scroll(0, 0);
}
<%= remove_element('#user-satisfaction') %>