Skip to content

Commit

Permalink
Merge pull request #295 from seedcase-project/bug/remove-bfcache-in-f…
Browse files Browse the repository at this point in the history
…irefox
  • Loading branch information
lwjohnst86 authored Mar 20, 2024
2 parents 69809d7 + 57bada8 commit 3044a95
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sprout/templates/file-drop-zone.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,13 @@ <h5>Extracting Column Metadata</h5>
}, false)


function showDialog() {
function showDialog() {
const dialog = document.getElementById("progress-dialog")
dialog.show();
}
dialog.show();
}

// This will disable the bfcache (back-forward cache) in firefox to ensure the page
// is reloaded, when user clicks the 'back button' in the browser
window.addEventListener('unload', function(){});
window.addEventListener('beforeunload', function(){});
</script>

0 comments on commit 3044a95

Please sign in to comment.