Skip to content

Commit

Permalink
fix(core): fix for smoothScroll check in Support module
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed May 15, 2023
1 parent 6a50d45 commit e0f4ae4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/get-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ function calcSupport() {
const document = getDocument();

return {
smoothScroll: document.documentElement && 'scrollBehavior' in document.documentElement.style,
smoothScroll:
document.documentElement &&
document.documentElement.style &&
'scrollBehavior' in document.documentElement.style,

touch: !!(
'ontouchstart' in window ||
Expand Down

0 comments on commit e0f4ae4

Please sign in to comment.