File tree 1 file changed +7
-0
lines changed
lib/js/src/manager/screen/utils
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,13 @@ class _PresentAlertOperation extends _Task {
455
455
* @returns {Boolean } - True if soft button images are supported, false if not.
456
456
*/
457
457
supportsSoftButtonImages ( ) {
458
+ if ( this . _currentWindowCapability === null
459
+ || this . _currentWindowCapability === undefined
460
+ || this . _currentWindowCapability . getSoftButtonCapabilities ( ) === null
461
+ || this . _currentWindowCapability . getSoftButtonCapabilities ( ) === undefined
462
+ || this . _currentWindowCapability . getSoftButtonCapabilities ( ) . length === 0 ) {
463
+ return true ; // return true if non-existant soft button capability
464
+ }
458
465
const softButtonCapabilities = this . _currentWindowCapability . getSoftButtonCapabilities ( ) [ 0 ] ;
459
466
return softButtonCapabilities . getImageSupported ( ) ;
460
467
}
You can’t perform that action at this time.
0 commit comments