Skip to content

Commit c22aa24

Browse files
committed
Open in the opener window
1 parent 57ce271 commit c22aa24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client/examples/healing/repair.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,13 @@
394394
Autodesk.Forge.Request(AUTH_SERVER_URL + '/download_file?fileName=' + fileName + '&bucketKey=' + bucketKey,
395395
null, {withCredentials: true}).get().then(function (result) {
396396
$('#downloadMesh').remove();
397-
window.location.href = result.downloadUrl;
397+
398+
if (window.opener) {
399+
window.location.href = result.downloadUrl;
400+
} else {
401+
window.parent.location.href = result.downloadUrl;
402+
}
403+
398404
}, errorResp);
399405

400406
});

0 commit comments

Comments
 (0)