allow drag and drop if navigating from shared page

This commit is contained in:
Erica Wright 2017-10-24 16:25:45 -04:00
parent acbf9fc32f
commit 41cb49141b
No known key found for this signature in database
GPG key ID: D9F2AF9D67D0AAB7

View file

@ -213,6 +213,7 @@ export default function(state, emitter) {
await fadeOut('download-progress'); await fadeOut('download-progress');
saveFile(f); saveFile(f);
state.storage.totalDownloads += 1; state.storage.totalDownloads += 1;
state.transfer = null;
metrics.completedDownload({ size, time, speed }); metrics.completedDownload({ size, time, speed });
emitter.emit('pushState', '/completed'); emitter.emit('pushState', '/completed');
} catch (err) { } catch (err) {