mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +02:00
Remove extra browse history item created by Clara download
This commit is contained in:
parent
4f0c429e7f
commit
14ecb24986
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,7 @@
|
|||
// Automatic download to High Fidelity.
|
||||
var downloadTimer;
|
||||
function startAutoDownload() {
|
||||
window.scrollTo(0, 0); // Scroll to top ready for history.back().
|
||||
if (!downloadTimer) {
|
||||
downloadTimer = setInterval(autoDownload, 1000);
|
||||
}
|
||||
|
@ -131,6 +132,7 @@
|
|||
EventBridge.emitWebEvent("CLARA.IO DOWNLOAD " + href);
|
||||
console.log("Clara.io FBX file download initiated for " + href);
|
||||
$("a.btn.cancel").click();
|
||||
history.back(); // Remove history item created by clicking "download".
|
||||
};
|
||||
} else {
|
||||
clearInterval(downloadTimer);
|
||||
|
|
Loading…
Reference in a new issue