javascript: fix missign argument to catch
Some browers complain about this.
This commit is contained in:
parent
444732b117
commit
72d003b62c
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
try {
|
try {
|
||||||
window.scroll({ top: 0, left: 0, behavior: 'smooth' });
|
window.scroll({ top: 0, left: 0, behavior: 'smooth' });
|
||||||
} catch {
|
} catch(e) {
|
||||||
window.scroll(0, 0);
|
window.scroll(0, 0);
|
||||||
}
|
}
|
||||||
<%= remove_element('#user-satisfaction') %>
|
<%= remove_element('#user-satisfaction') %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue