File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,13 @@ function sepiaFW_build_speech(){
344344 }
345345 function broadcastWrongAsrSettings ( ) {
346346 //EXAMPLE:
347- SepiaFW . ui . showInfo ( SepiaFW . local . g ( 'asrSettingsProblem' ) ) ;
347+ var msg = SepiaFW . local . g ( 'asrSettingsProblem' ) ;
348+ if ( ! SepiaFW . ui . isSecureContext ) {
349+ msg += " " + SepiaFW . local . g ( 'possible_reason_origin_unsecure' )
350+ + " - <a href='https://github.com/SEPIA-Framework/sepia-docs/wiki/SSL-for-your-Server' target=_blank style='color: inherit;'>"
351+ + SepiaFW . local . g ( 'help' ) + "!</a>" ;
352+ }
353+ SepiaFW . ui . showInfo ( msg ) ;
348354 }
349355 function broadcastNoAsrSupport ( ) {
350356 //EXAMPLE:
Original file line number Diff line number Diff line change @@ -70,7 +70,13 @@ function sepiaFW_build_speechWebSocket(){
7070 }
7171 function broadcastWrongAsrSettings ( ) {
7272 //EXAMPLE:
73- SepiaFW . ui . showInfo ( SepiaFW . local . g ( 'asrSettingsProblem' ) ) ;
73+ var msg = SepiaFW . local . g ( 'asrSettingsProblem' ) ;
74+ if ( ! SepiaFW . ui . isSecureContext ) {
75+ msg += " " + SepiaFW . local . g ( 'possible_reason_origin_unsecure' )
76+ + " - <a href='https://github.com/SEPIA-Framework/sepia-docs/wiki/SSL-for-your-Server' target=_blank style='color: inherit;'>"
77+ + SepiaFW . local . g ( 'help' ) + "!</a>" ;
78+ }
79+ SepiaFW . ui . showInfo ( msg ) ;
7480 }
7581 function broadcastNoAsrSupport ( ) {
7682 //EXAMPLE:
You can’t perform that action at this time.
0 commit comments