From 2b5196106a1f2610edf19dc77470662f9a0a3d97 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 1 Apr 2019 14:08:11 -0400 Subject: [PATCH] remove code in sb-file-uploader that sets uri history on loading project from file --- src/containers/sb-file-uploader.jsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/containers/sb-file-uploader.jsx b/src/containers/sb-file-uploader.jsx index de89b3afd..cc2e488b5 100644 --- a/src/containers/sb-file-uploader.jsx +++ b/src/containers/sb-file-uploader.jsx @@ -118,12 +118,6 @@ class SBFileUploader extends React.Component { const filename = this.fileToUpload && this.fileToUpload.name; this.props.vm.loadProject(this.reader.result) .then(() => { - // Remove the hash if any (without triggering a hash change event or a reload) - try { // Can fail e.g. when GUI is loaded from static file (integration tests) - history.replaceState({}, document.title, '.'); - } catch { - // No fallback, just do not trigger promise catch below - } this.props.onLoadingFinished(this.props.loadingState, true); // Reset the file input after project is loaded // This is necessary in case the user wants to reload a project