Skip to content

Commit

Permalink
fix: download pdf error
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphin0618 committed Nov 9, 2023
1 parent a12f641 commit 5d33519
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FixedSizeList as List, areEqual } from 'react-window';

const SASS_HOST = 'https://bisheng.dataelem.com'
export const checkSassUrl = (url: string) => {
return location.origin !== SASS_HOST ? url.replace(/^http:\/\/.*:\d+/, SASS_HOST) : url;
return location.origin === SASS_HOST ? url.replace(/^http:\/\/.*:\d+/, SASS_HOST) : url;
}
interface Chunk {
id: number
Expand Down

0 comments on commit 5d33519

Please sign in to comment.