зеркало из https://github.com/mozilla/popcorn-js.git
Safer check with typeof !== undefined
This commit is contained in:
Родитель
61b1b1ffd9
Коммит
7ee019fa43
|
@ -743,7 +743,7 @@ module( "Popcorn Prototype Methods" );
|
|||
test( "deprecated method warning", function() {
|
||||
// If there is no console, then this feature won't work anyway
|
||||
// so there is no point in testing it
|
||||
if ( !console ) {
|
||||
if ( typeof console !== "undefined" ) {
|
||||
expect( 3 );
|
||||
|
||||
var $pop = Popcorn( "#video" ),
|
||||
|
|
Загрузка…
Ссылка в новой задаче