We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57ce271 commit c22aa24Copy full SHA for c22aa24
client/examples/healing/repair.html
@@ -394,7 +394,13 @@
394
Autodesk.Forge.Request(AUTH_SERVER_URL + '/download_file?fileName=' + fileName + '&bucketKey=' + bucketKey,
395
null, {withCredentials: true}).get().then(function (result) {
396
$('#downloadMesh').remove();
397
- window.location.href = result.downloadUrl;
+
398
+ if (window.opener) {
399
+ window.location.href = result.downloadUrl;
400
+ } else {
401
+ window.parent.location.href = result.downloadUrl;
402
+ }
403
404
}, errorResp);
405
406
});
0 commit comments