Skip to content

Commit

Permalink
[bug-modify]: change fetch of default port 2099
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengdechang2 committed Nov 30, 2022
1 parent 981f6f7 commit 5460bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"cm": "npx git-cz",
"build": "lerna run build:orthanc --stream",
"build": "lerna run build:viewer --stream",
"build:lt": "lerna run build:viewer:lesion-tracker --stream",
"build:ci": "lerna run build:viewer:ci --stream",
"build:demo": "lerna run build:viewer:demo --stream",
Expand Down Expand Up @@ -43,11 +43,7 @@
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"core-js": "^3.2.1",
"pdfjs-dist": "^2.2.228",
"react-transition-group": "^4.2.1",
"worker-loader": "^2.0.0",
"yarn": "^1.22.19"
"core-js": "^3.2.1"
},
"devDependencies": {
"@babel/core": "^7.5.0",
Expand Down
2 changes: 1 addition & 1 deletion platform/viewer/src/components/Header/editServerContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function EditServerContent(props) {

const pingServer = () => {
const start = (new Date()).getTime()
let server = process.env.NODE_ENV === "development" ? `/${addServerValue}` : `http://${addServerValue}`
let server = process.env.NODE_ENV === "development" ? `/${addServerValue}:2099` : `http://${addServerValue}:2099`
fetch(server, { mode: 'no-cors', }).then(() => {
const delta = (new Date()).getTime() - start
if (delta > 10000) {
Expand Down

0 comments on commit 5460bf7

Please sign in to comment.