added check to see if browser is gcm compliant
This commit is contained in:
parent
2031158336
commit
64998de423
3 changed files with 55 additions and 2 deletions
|
@ -1,10 +1,18 @@
|
|||
const FileSender = require('./fileSender');
|
||||
const { notify } = require('./utils');
|
||||
const { notify, gcmCompliant } = require('./utils');
|
||||
const $ = require('jquery');
|
||||
|
||||
const Raven = window.Raven;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
// added as a print statement for now, eventually move init stuff
|
||||
// into here and display an error page if it's not compliant
|
||||
gcmCompliant().catch(err => {
|
||||
$('#page-one').hide();
|
||||
$('#compliance-error').show();
|
||||
})
|
||||
|
||||
// reset copy button
|
||||
const $copyBtn = $('#copy-btn');
|
||||
$copyBtn.attr('disabled', false);
|
||||
|
@ -15,6 +23,7 @@ $(document).ready(function() {
|
|||
$('#upload-progress').hide();
|
||||
$('#share-link').hide();
|
||||
$('#upload-error').hide();
|
||||
$('#compliance-error').hide();
|
||||
|
||||
if (localStorage.length === 0) {
|
||||
toggleHeader();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue