Introduce processor

This commit is contained in:
Akihiko Odaki 2018-03-29 01:20:40 +09:00
parent 68ce6d5748
commit 90f8fe7e53
582 changed files with 246 additions and 188 deletions

View file

@ -1,31 +0,0 @@
/**
* ブラウザの検証
*/
// Detect an old browser
if (!('fetch' in window)) {
alert(
'お使いのブラウザが古いためMisskeyを動作させることができません。' +
'バージョンを最新のものに更新するか、別のブラウザをお試しください。' +
'\n\n' +
'Your browser seems outdated. ' +
'To run Misskey, please update your browser to latest version or try other browsers.');
}
// Detect Edge
if (navigator.userAgent.toLowerCase().indexOf('edge') != -1) {
alert(
'現在、お使いのブラウザ(Microsoft Edge)ではMisskeyは正しく動作しません。' +
'サポートしているブラウザ: Google Chrome, Mozilla Firefox, Apple Safari など' +
'\n\n' +
'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.');
}