use import/export in the frontend code

This commit is contained in:
Danny Coates 2017-08-10 10:02:13 -07:00
parent 11ae7f857c
commit 702134b3b1
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
15 changed files with 51 additions and 64 deletions

View file

@ -1,13 +1,13 @@
const { Raven } = require('./common');
const FileReceiver = require('./fileReceiver');
const { bytes, notify, gcmCompliant } = require('./utils');
const Storage = require('./storage');
const storage = new Storage();
const links = require('./links');
const metrics = require('./metrics');
const progress = require('./progress');
const $ = require('jquery');
import { Raven } from './common';
import FileReceiver from './fileReceiver';
import { bytes, notify, gcmCompliant } from './utils';
import Storage from './storage';
import * as links from './links';
import * as metrics from './metrics';
import * as progress from './progress';
import $ from 'jquery';
const storage = new Storage(localStorage);
function onUnload(size) {
metrics.cancelledDownload({ size });
}