fix(close): use string concatenation for ie11

This commit is contained in:
Leonard Kim 2018-01-08 13:47:54 -08:00 committed by hristoterezov
parent 259004b8bf
commit 64c5ae1c48
1 changed files with 6 additions and 2 deletions

View File

@ -41,9 +41,13 @@ function insertTextMsg(id, msg) {
* Sets the hint and thanks messages. Will be executed on load event.
*/
function onLoad() {
// Intentionally use string concatenation as this file does not go through
// babel but IE11 is still supported.
// eslint-disable-next-line prefer-template
const thankYouMessage = 'Thank you for using ' + interfaceConfig.APP_NAME;
// Works only for close2.html because close.html doesn't have this element.
insertTextMsg('thanksMessage',
`Thank you for using ${interfaceConfig.APP_NAME}`);
insertTextMsg('thanksMessage', thankYouMessage);
// If there is a setting show a special message only for the guests
if (interfaceConfig.CLOSE_PAGE_GUEST_HINT) {