summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-24 21:06:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-24 21:06:19 +0900
commite82bdf151131b32171aad5da26777dd9f9da7a13 (patch)
treeb964caf80b9ace5839b5075ea437fc76a6aeed2d /src/web/app
parentRefactoring (diff)
downloadmisskey-e82bdf151131b32171aad5da26777dd9f9da7a13.tar.gz
misskey-e82bdf151131b32171aad5da26777dd9f9da7a13.tar.bz2
misskey-e82bdf151131b32171aad5da26777dd9f9da7a13.zip
Check if ES6 supported
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/boot.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 5abbeba684..d38b12a742 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -6,10 +6,18 @@
/**
* ドメインに基づいて適切なスクリプトを読み込みます。
* ユーザーの言語およびモバイル端末か否かも考慮します。
+ * webpackは介さないためrequireやimportは使えません。
*/
'use strict';
+// Detect an old browser
+if (window.fetch == undefined) {
+ alert(
+ 'お使いのブラウザが古いためMisskeyを動作させることができません。' +
+ 'バージョンを最新のものに更新するか、別のブラウザをお試しください。');
+}
+
// Get the current url information
const Url = new URL(location.href);