Better detection

This commit is contained in:
syuilo 2017-11-20 05:47:34 +09:00
parent a8f51e8e86
commit fd18359178

View file

@ -13,7 +13,7 @@ if (!('fetch' in window)) {
} }
// Detect Edge // Detect Edge
if (navigator.userAgent.indexOf('Edge') != -1) { if (navigator.userAgent.toLowerCase().indexOf('edge') != -1) {
alert( alert(
'現在、お使いのブラウザ(Microsoft Edge)ではMisskeyは正しく動作しません。' + '現在、お使いのブラウザ(Microsoft Edge)ではMisskeyは正しく動作しません。' +
'サポートしているブラウザ: Google Chrome, Mozilla Firefox, Apple Safari など' + 'サポートしているブラウザ: Google Chrome, Mozilla Firefox, Apple Safari など' +