Skip to content
Snippets Groups Projects
Commit 5f040ac8 authored by syuilo's avatar syuilo
Browse files

Check Edge

parent 00d3d564
No related merge requests found
/**
* 古いブラウザの検知を行う
* ブートローダーとは隔離されているため互いに影響を及ぼすことはない
* ブラウザの検証
*/
// Detect an old browser
......@@ -12,3 +11,13 @@ if (!('fetch' in window)) {
'Your browser seems outdated. ' +
'To run Misskey, please update your browser to latest version or try other browsers.');
}
// Detect Edge
if (navigator.userAgent.indexOf('Edge')) {
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');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment