From e82bdf151131b32171aad5da26777dd9f9da7a13 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 21:06:19 +0900 Subject: [PATCH] Check if ES6 supported --- src/web/app/boot.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 5abbeba68..d38b12a74 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);