Przeglądaj źródła

fix(close): use string concatenation for ie11

j8
Leonard Kim 7 lat temu
rodzic
commit
64c5ae1c48
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6
    2
      static/close.js

+ 6
- 2
static/close.js Wyświetl plik

@@ -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) {

Ładowanie…
Anuluj
Zapisz