File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
lib/js/src/manager/screen/utils Expand file tree Collapse file tree 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 {
455455 * @returns {Boolean } - True if soft button images are supported, false if not.
456456 */
457457 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+ }
458465 const softButtonCapabilities = this . _currentWindowCapability . getSoftButtonCapabilities ( ) [ 0 ] ;
459466 return softButtonCapabilities . getImageSupported ( ) ;
460467 }
You can’t perform that action at this time.
0 commit comments