mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 19:33:24 +00:00
unsupport MS Edge (for now, sorry) and some http header nits
This commit is contained in:
@@ -28,6 +28,9 @@ app.use((state, emitter) => {
|
||||
) {
|
||||
return emitter.emit('replaceState', '/unsupported/outdated');
|
||||
}
|
||||
if (/edge\/\d+/i.test(navigator.userAgent)) {
|
||||
return emitter.emit('replaceState', '/unsupported/edge');
|
||||
}
|
||||
const ok = await canHasSend(assets.get('cryptofill.js'));
|
||||
if (!ok) {
|
||||
const reason = /firefox/i.test(navigator.userAgent) ? 'outdated' : 'gcm';
|
||||
|
||||
Reference in New Issue
Block a user