We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de25a0 commit 212fc85Copy full SHA for 212fc85
smooth-scroll.js
@@ -31,7 +31,7 @@
31
*/
32
33
var exports = {}; // Object for public APIs
34
- var supports = { html5: !!document.querySelector && !!root.addEventListener }; // Feature test
+ var supports = !!document.querySelector && !!root.addEventListener; // Feature test
35
36
// Default settings
37
var defaults = {
@@ -255,7 +255,7 @@
255
exports.init = function ( options ) {
256
257
// feature test
258
- if ( !supports.html5 ) return;
+ if ( !supports ) return;
259
260
// Selectors and variables
261
var settings = extend( defaults, options || {} ); // Merge user options with defaults
0 commit comments