mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:33:08 +02:00
Check Edge
This commit is contained in:
parent
00d3d564fc
commit
5f040ac85d
1 changed files with 11 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* 古いブラウザの検知を行う
|
* ブラウザの検証
|
||||||
* ブートローダーとは隔離されているため互いに影響を及ぼすことはない
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Detect an old browser
|
// Detect an old browser
|
||||||
|
@ -12,3 +11,13 @@ if (!('fetch' in window)) {
|
||||||
'Your browser seems outdated. ' +
|
'Your browser seems outdated. ' +
|
||||||
'To run Misskey, please update your browser to latest version or try other browsers.');
|
'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');
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue