From d97aecab90e9527c090bc1dc587af7d3caf286a4 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 20 Feb 2021 21:15:40 -0800 Subject: [PATCH] Fixed minification. --- translate/translate.js | 1 + views/default-mobile.handlebars | 2 +- views/default.handlebars | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/translate/translate.js b/translate/translate.js index ceee32f5..88ef0e05 100644 --- a/translate/translate.js +++ b/translate/translate.js @@ -64,6 +64,7 @@ var minifyMeshCentralSourceFiles = [ "../views/error4042.handlebars", "../views/error404-mobile.handlebars", "../views/login.handlebars", + "../views/login2.handlebars", "../views/login-mobile.handlebars", "../views/terms.handlebars", "../views/terms-mobile.handlebars", diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index d581f7bf..c436007b 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -5440,7 +5440,7 @@ "SMS error: {0}" ]; if (typeof n.titleid == 'number') { try { n.title = translatedTitles[n.titleid]; } catch (ex) { } } - if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { n.text = format(n.text, ...n.args); } } catch (ex) { } } + if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { n.text = format(n.text, n.args[0], n.args[1], n.args[2], n.args[3], n.args[4], n.args[5]); } } catch (ex) { } } // Show notification within the web page. if (n.time == null) { n.time = Date.now(); } diff --git a/views/default.handlebars b/views/default.handlebars index 0669e5f2..fc4d6e51 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -13569,7 +13569,7 @@ "SMS error: {0}" ]; if (typeof n.titleid == 'number') { try { n.title = translatedTitles[n.titleid]; } catch (ex) {} } - if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { n.text = format(n.text, ...n.args); } } catch (ex) {} } + if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { n.text = format(n.text, n.args[0], n.args[1], n.args[2], n.args[3], n.args[4], n.args[5]); } } catch (ex) { } } // Show notification within the web page. if (n.time == null) { n.time = Date.now(); } @@ -14517,7 +14517,7 @@ var base64 = (base64String + padding).replace(/-/g, '+').replace(/_/g, '/'); var rawData = atob(base64); var outputArray = new Uint8Array(rawData.length); - for (let i = 0; i < rawData.length; ++i) { outputArray[i] = rawData.charCodeAt(i); } + for (var i = 0; i < rawData.length; ++i) { outputArray[i] = rawData.charCodeAt(i); } return outputArray; }