QA bug fixes

This commit is contained in:
Danny Coates 2017-09-13 12:01:55 -07:00
parent 07b7bc003a
commit 8e14d3f8f7
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
13 changed files with 631 additions and 398 deletions

View file

@ -28,6 +28,13 @@ app.use((state, emitter) => {
uploadButtonStyle: 'browse btn'
};
emitter.on('DOMContentLoaded', async () => {
if (
/firefox/i.test(navigator.userAgent) &&
parseInt(navigator.userAgent.match(/firefox\/*([^\n\r]*)\./i)[1], 10) <=
49
) {
return emitter.emit('replaceState', '/unsupported/outdated');
}
const ok = await canHasSend(assets.get('cryptofill.js'));
if (!ok) {
const reason = /firefox/i.test(navigator.userAgent) ? 'outdated' : 'gcm';