shx-3d-render

main
Jan Umbach 2024-06-13 18:34:24 +02:00
parent f61c9793e2
commit d3808bdb58
1 changed files with 3 additions and 7 deletions

View File

@ -114,13 +114,9 @@
.then((response) => {
// stl file
return response.blob();
}).then((blob) => {
// create object url
let objectURL = URL.createObjectURL(blob);
// create new tab
let newTab = window.open(objectURL, '_blank');
newTab.focus();
}).then((blob) => {
// log size in kB
console.log(blob.size / 1024 + 'kB');
});
}