Fix ROOT_URL for Standalone Viewer

This commit is contained in:
Erik Ziegler 2019-01-17 17:44:26 +01:00
parent 59b7c951df
commit 9cc063430a
8 changed files with 7 additions and 35 deletions

View File

@ -20379,14 +20379,7 @@ OHIF$1.external.cornerstoneTools = cornerstoneTools$1;
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
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
// 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 ROOT_URL = window.location.pathname;
var config = {
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
startWebWorkersOnDemand: true,

File diff suppressed because one or more lines are too long

View File

@ -20386,14 +20386,7 @@ OHIF$1.external.cornerstoneTools = cornerstoneTools$1;
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
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
// 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 ROOT_URL = window.location.pathname;
var config = {
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
startWebWorkersOnDemand: true,

File diff suppressed because one or more lines are too long

View File

@ -20385,14 +20385,7 @@
OHIF$1.external.cornerstoneMath = cornerstoneMath$1;
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
// 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 ROOT_URL = window.location.pathname;
var config = {
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
startWebWorkersOnDemand: true,

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "ohif-viewer",
"version": "0.0.3",
"version": "0.0.4",
"description": "OHIF Viewer",
"author": "OHIF Contributors",
"license": "MIT",

View File

@ -36,13 +36,6 @@ OHIF.external.cornerstoneWADOImageLoader = cornerstoneWADOImageLoader;
// TODO: Is there a better way to guess ROOT_URL?
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 = {
maxWebWorkers: Math.max(navigator.hardwareConcurrency - 1, 1),
startWebWorkersOnDemand: true,