From c17252788f46aba4685b41a3915f76926a88efc5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 May 2017 14:29:55 +0900 Subject: [PATCH] Better English --- src/web/app/boot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 7431f817b..396935aa1 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -21,12 +21,12 @@ const Url = new URL(location.href); // dev.misskey.alice.tachibana => dev let app = Url.host.split('.')[0]; -// Detect user language +// Detect the user language // Note: The default language is English let lang = navigator.language.split('-')[0]; if (!/^(en|ja)$/.test(lang)) lang = 'en'; -// Detect user agent +// Detect the user agent const ua = navigator.userAgent.toLowerCase(); const isMobile = /mobile|iphone|ipad|android/.test(ua); @@ -46,8 +46,8 @@ if (app == 'misskey') { app = isMobile ? 'mobile' : 'desktop'; } -// Load app script -// Note: 'async' makes can load the script async. +// Load an app script +// Note: 'async' makes can load the script asyncly. // 'defer' makes can run script when the dom loaded. const script = document.createElement('script'); script.setAttribute('src', `/assets/${app}.${VERSION}.${lang}.js`);