Skip to content

Commit

Permalink
refactor: support openfinai to download
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Dec 12, 2023
1 parent 4990366 commit bc6c692
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dumi/pages/download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ function Download() {
setAllow(true);
setToken(tokenFromUrl);
setTimeStamp(new Date().getTime());

const host = 'openspg.openfinai.org';
if (location.host !== host) {
window.location.href = window.location.href.replace(
window.location.host,
host,
);
}
window.close();
}
}, [moduleLoaded, tokenFromUrl]);
Expand Down

0 comments on commit bc6c692

Please sign in to comment.