Browse Source

fix(close): use string concatenation for ie11

master
Leonard Kim 6 years ago
parent
commit
64c5ae1c48
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      static/close.js

+ 6
- 2
static/close.js View File

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

Loading…
Cancel
Save