瀏覽代碼

fix(close): use string concatenation for ie11

j8
Leonard Kim 7 年之前
父節點
當前提交
64c5ae1c48
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      static/close.js

+ 6
- 2
static/close.js 查看文件

@@ -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…
取消
儲存