Commit
…sue with leadWithHTML5)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1265,8 +1265,11 @@ var kWidget = { | |
} | ||
|
||
// Check for "Kaltura.LeadWithHTML5" attribute | ||
if( mw.getConfig( 'KalturaSupport.LeadWithHTML5' ) || mw.getConfig( 'Kaltura.LeadWithHTML5' ) ){ | ||
return this.supportsHTML5(); | ||
// Only return true if the browser actually supports html5 | ||
if( | ||
(mw.getConfig( 'KalturaSupport.LeadWithHTML5' ) || mw.getConfig( 'Kaltura.LeadWithHTML5' )) | ||
&& this.supportsHTML5() ){ | ||
return true; | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
avivais
Contributor
|
||
|
||
// Special check for Android: | ||
|
how are these conditionals different? .. if leadWithHTML5 we return this.supportsHTML5() ... in the second instance if leadWithHTML5 == true, we return true ...
was supportsHTML5 returning the wrong thing ( i.e true for blackberry when it should have been false? ) how does this "fix" the issue? supportsHTML5 will still be "true" and we will still return "true" for leadWithHTML5 ..? ...
am I missing something?