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);