From 4539655c5dfd5c85352f57c7e2b515e008c356bc Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Jun 2017 02:01:06 +0900 Subject: [PATCH] Refactor --- src/web/app/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 1049f520a7..2671d372fd 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -12,7 +12,7 @@ 'use strict'; // Get the current url information -const Url = new URL(location.href); +const url = new URL(location.href); // Extarct the (sub) domain part of the current url // @@ -20,7 +20,7 @@ const Url = new URL(location.href); // misskey.alice => misskey // misskey.strawberry.pasta => misskey // dev.misskey.alice.tachibana => dev -let app = Url.host.split('.')[0]; +let app = url.host.split('.')[0]; // Detect the user language // Note: The default language is English