From c639a18ec86c55cb73cedac9faa97d307639155d Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Nov 2017 05:47:09 +0900 Subject: [PATCH] Check Cookie --- src/web/app/safe.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/web/app/safe.js b/src/web/app/safe.js index 6a0f22fe6..e8482b057 100644 --- a/src/web/app/safe.js +++ b/src/web/app/safe.js @@ -21,3 +21,11 @@ if (navigator.userAgent.indexOf('Edge') != -1) { 'Currently, Misskey cannot run correctly on your browser (Microsoft Edge). ' + 'Supported browsers: Google Chrome, Mozilla Firefox, Apple Safari, etc'); } + +// Check whether cookie enabled +if (!navigator.cookieEnabled) { + alert( + 'Misskeyを利用するにはCookieを有効にしてください。' + + '\n\n' + + 'To use Misskey, please enable Cookie.'); +}