Fix ROOT_URL for Standalone Viewer
This commit is contained in:
parent
59b7c951df
commit
9cc063430a
9
Packages-react/ohif-viewer/dist/index.es.js
vendored
9
Packages-react/ohif-viewer/dist/index.es.js
vendored
@ -20379,14 +20379,7 @@ OHIF$1.external.cornerstoneTools = cornerstoneTools$1;
|
|||||||
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
|
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
|
||||||
OHIF$1.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader$1; // TODO: Is there a better way to guess ROOT_URL?
|
OHIF$1.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader$1; // TODO: Is there a better way to guess ROOT_URL?
|
||||||
|
|
||||||
var ROOT_URL = window.location.pathname; // If the page we are on is not a subset of the expected homepage
|
var ROOT_URL = window.location.pathname;
|
||||||
// provided in the package.json file, we might be doing local development.
|
|
||||||
// In this case, set the base URL to the current location's origin.
|
|
||||||
|
|
||||||
if (homepage.includes(window.location.origin) === false) {
|
|
||||||
ROOT_URL = window.location.origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
9
Packages-react/ohif-viewer/dist/index.js
vendored
9
Packages-react/ohif-viewer/dist/index.js
vendored
@ -20386,14 +20386,7 @@ OHIF$1.external.cornerstoneTools = cornerstoneTools$1;
|
|||||||
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
|
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
|
||||||
OHIF$1.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader$1; // TODO: Is there a better way to guess ROOT_URL?
|
OHIF$1.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader$1; // TODO: Is there a better way to guess ROOT_URL?
|
||||||
|
|
||||||
var ROOT_URL = window.location.pathname; // If the page we are on is not a subset of the expected homepage
|
var ROOT_URL = window.location.pathname;
|
||||||
// provided in the package.json file, we might be doing local development.
|
|
||||||
// In this case, set the base URL to the current location's origin.
|
|
||||||
|
|
||||||
if (homepage.includes(window.location.origin) === false) {
|
|
||||||
ROOT_URL = window.location.origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
|
|||||||
2
Packages-react/ohif-viewer/dist/index.js.map
vendored
2
Packages-react/ohif-viewer/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
9
Packages-react/ohif-viewer/dist/index.umd.js
vendored
9
Packages-react/ohif-viewer/dist/index.umd.js
vendored
@ -20385,14 +20385,7 @@
|
|||||||
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
|
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
|
||||||
OHIF$1.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader$1; // TODO: Is there a better way to guess ROOT_URL?
|
OHIF$1.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader$1; // TODO: Is there a better way to guess ROOT_URL?
|
||||||
|
|
||||||
var ROOT_URL = window.location.pathname; // If the page we are on is not a subset of the expected homepage
|
var ROOT_URL = window.location.pathname;
|
||||||
// provided in the package.json file, we might be doing local development.
|
|
||||||
// In this case, set the base URL to the current location's origin.
|
|
||||||
|
|
||||||
if (homepage.includes(window.location.origin) === false) {
|
|
||||||
ROOT_URL = window.location.origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ohif-viewer",
|
"name": "ohif-viewer",
|
||||||
"version": "0.0.3",
|
"version": "0.0.4",
|
||||||
"description": "OHIF Viewer",
|
"description": "OHIF Viewer",
|
||||||
"author": "OHIF Contributors",
|
"author": "OHIF Contributors",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@ -36,13 +36,6 @@ OHIF.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader;
|
|||||||
// TODO: Is there a better way to guess ROOT_URL?
|
// TODO: Is there a better way to guess ROOT_URL?
|
||||||
let ROOT_URL = window.location.pathname;
|
let ROOT_URL = window.location.pathname;
|
||||||
|
|
||||||
// If the page we are on is not a subset of the expected homepage
|
|
||||||
// provided in the package.json file, we might be doing local development.
|
|
||||||
// In this case, set the base URL to the current location's origin.
|
|
||||||
if (homepage.includes(window.location.origin) === false) {
|
|
||||||
ROOT_URL = window.location.origin;
|
|
||||||
}
|
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
|
||||||
startWebWorkersOnDemand: true,
|
startWebWorkersOnDemand: true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user