make the site mostly work when cookies (localStorage) are disabled

This commit is contained in:
Danny Coates 2017-08-09 18:16:10 -07:00
parent 493bf8dc89
commit 09faedf059
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
4 changed files with 47 additions and 10 deletions

View file

@ -2,7 +2,7 @@ const { Raven } = require('./common');
const FileReceiver = require('./fileReceiver');
const { bytes, notify, gcmCompliant } = require('./utils');
const Storage = require('./storage');
const storage = new Storage(localStorage);
const storage = new Storage();
const links = require('./links');
const metrics = require('./metrics');
const progress = require('./progress');
@ -87,6 +87,7 @@ function download() {
a.download = fname;
document.body.appendChild(a);
a.click();
URL.revokeObjectURL(downloadUrl);
})
.catch(err => {
Raven.captureException(err);