Skip to content

Commit 212fc85

Browse files
author
Chris Ferdinandi
committed
Updated feature test
1 parent 5de25a0 commit 212fc85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smooth-scroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232

3333
var exports = {}; // Object for public APIs
34-
var supports = { html5: !!document.querySelector && !!root.addEventListener }; // Feature test
34+
var supports = !!document.querySelector && !!root.addEventListener; // Feature test
3535

3636
// Default settings
3737
var defaults = {
@@ -255,7 +255,7 @@
255255
exports.init = function ( options ) {
256256

257257
// feature test
258-
if ( !supports.html5 ) return;
258+
if ( !supports ) return;
259259

260260
// Selectors and variables
261261
var settings = extend( defaults, options || {} ); // Merge user options with defaults

0 commit comments

Comments
 (0)