Sfoglia il codice sorgente

feat(conference): lower the redirect timeout after feedback submission (#2673)

master
Saúl Ibarra Corretgé 7 anni fa
parent
commit
eb69fb69cb
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      conference.js

+ 3
- 2
conference.js Vedi File

236
         }));
236
         }));
237
     }
237
     }
238
 
238
 
239
-    // if Welcome page is enabled redirect to welcome page after 3 sec.
239
+    // if Welcome page is enabled redirect to welcome page after 3 sec, if
240
+    // there is a thank you message to be shown, 0.5s otherwise.
240
     if (config.enableWelcomePage) {
241
     if (config.enableWelcomePage) {
241
         setTimeout(
242
         setTimeout(
242
             () => {
243
             () => {
243
                 APP.store.dispatch(redirectWithStoredParams('/'));
244
                 APP.store.dispatch(redirectWithStoredParams('/'));
244
             },
245
             },
245
-            3000);
246
+            options.showThankYou ? 3000 : 500);
246
     }
247
     }
247
 }
248
 }
248
 
249
 

Loading…
Annulla
Salva