File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -732,7 +732,16 @@ class SystemCapabilityManager extends _SubManagerBase {
732732 if ( defaultMainWindow . getImageFields ( ) !== null && defaultMainWindow . getImageFields ( ) !== undefined ) {
733733 convertedCapabilities . setImageFields ( defaultMainWindow . getImageFields ( ) ) ;
734734 }
735- convertedCapabilities . setTemplatesAvailable ( defaultMainWindow . getTemplatesAvailable ( ) ) ;
735+
736+ // Ford Sync bug returning incorrect template name for "NON-MEDIA" https://github.com/smartdevicelink/sdl_javascript_suite/issues/450
737+ const templatesAvailable = defaultMainWindow . getTemplatesAvailable ( ) ;
738+ for ( let index = 0 ; index < templatesAvailable . length ; index ++ ) {
739+ if ( templatesAvailable [ index ] === 'NON_MEDIA' ) {
740+ templatesAvailable [ index ] = 'NON-MEDIA' ;
741+ break ;
742+ }
743+ }
744+ convertedCapabilities . setTemplatesAvailable ( templatesAvailable ) ;
736745 convertedCapabilities . setNumCustomPresetsAvailable ( defaultMainWindow . getNumCustomPresetsAvailable ( ) ) ;
737746 convertedCapabilities . setMediaClockFormats ( [ ] ) ; // mandatory field but allows empty array
738747 // if there are imageTypes in the response, we must assume graphics are supported
You can’t perform that action at this time.
0 commit comments