mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:50:06 +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.
|
// Automatic download to High Fidelity.
|
||||||
var downloadTimer;
|
var downloadTimer;
|
||||||
function startAutoDownload() {
|
function startAutoDownload() {
|
||||||
|
window.scrollTo(0, 0); // Scroll to top ready for history.back().
|
||||||
if (!downloadTimer) {
|
if (!downloadTimer) {
|
||||||
downloadTimer = setInterval(autoDownload, 1000);
|
downloadTimer = setInterval(autoDownload, 1000);
|
||||||
}
|
}
|
||||||
|
@ -131,6 +132,7 @@
|
||||||
EventBridge.emitWebEvent("CLARA.IO DOWNLOAD " + href);
|
EventBridge.emitWebEvent("CLARA.IO DOWNLOAD " + href);
|
||||||
console.log("Clara.io FBX file download initiated for " + href);
|
console.log("Clara.io FBX file download initiated for " + href);
|
||||||
$("a.btn.cancel").click();
|
$("a.btn.cancel").click();
|
||||||
|
history.back(); // Remove history item created by clicking "download".
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
clearInterval(downloadTimer);
|
clearInterval(downloadTimer);
|
||||||
|
|
Loading…
Reference in a new issue