remove hiding elements with jquery

This commit is contained in:
Erica Wright 2017-07-27 13:15:50 -04:00
parent 7a53ed96ed
commit 318e1a49bf
No known key found for this signature in database
GPG Key ID: D9F2AF9D67D0AAB7

View File

@ -10,11 +10,9 @@ window.analytics = new testPilotGA({
tid: window.trackerId
});
const isSender = location.pathname.includes('/download');
const isSender = !location.pathname.includes('/download');
gcmCompliant().catch(err => {
$('#page-one').attr('hidden', true);
$('#download').attr('hidden', true);
sendEvent(isSender ? 'sender' : 'recipient', 'unsupported', {
cd6: err
}).then(() => {