Skip to content

Commit

Permalink
Merge pull request #355 from Kanaries/feat-api-domain_check-ks-0505
Browse files Browse the repository at this point in the history
Update loggers
  • Loading branch information
ObservedObserver committed May 5, 2023
2 parents f61f5ad + a7cf798 commit ae69d63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/rath-client/src/loggers/dataImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ export async function logDataImport (props: IDataImportInfo) {
}

export async function dataBackup (file: File) {
if (!window.location.hostname.includes('kanaries.cn')) {
return;
}
if (process.env.NODE_ENV === 'production') {
const data = new FormData();
data.append('file', file);
const url = '//kanaries.cn/api/ce/uploadDataset'
const url = `//kanaries.${window.location.hostname.includes('kanaries.cn') ? 'cn' : 'net'}/api/ce/uploadDataset`;
fetch(url, {
method: 'POST',
credentials: 'include',
Expand Down

1 comment on commit ae69d63

@vercel
Copy link

@vercel vercel bot commented on ae69d63 May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.