diff --git a/src/addtohomescreen.js b/src/addtohomescreen.js index 3b52c91..bf7a4cd 100644 --- a/src/addtohomescreen.js +++ b/src/addtohomescreen.js @@ -664,8 +664,7 @@ this._canPrompt = false; - if ( _instance.options.customCriteria !== null || - _instance.options.customCriteria !== undefined ) { + if ( _instance.options.customCriteria) { var passCustom = false; @@ -995,4 +994,4 @@ // expose to the world window.addToHomescreen = ath; -} )( window, document ); \ No newline at end of file +} )( window, document );