summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-18 14:29:55 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-18 14:29:55 +0900
commit7c7e824070f4ec71c5f70df896248b779eb2b164 (patch)
tree232f557ea1b06a45fd493ffc87e60444d2e19054 /src/web
parentMore readability (diff)
downloadmisskey-7c7e824070f4ec71c5f70df896248b779eb2b164.tar.gz
misskey-7c7e824070f4ec71c5f70df896248b779eb2b164.tar.bz2
misskey-7c7e824070f4ec71c5f70df896248b779eb2b164.zip
Better English
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/boot.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 7431f817b4..396935aa19 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`);