File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ import { Component } from 'react';
22import ReactDOM from 'react-dom' ;
33import _ from 'underscore' ;
44import url from 'url' ;
5+ import { default as packageJSON } from './../package.json' ;
56
67// Loaded on index.html, defined as an external in webpack.config.demo.js
78import Graph , { GraphParser } from 'react-workflow-viz' ;
89
910// eslint-disable-next-line no-undef
10- const BASE_HREF = ( typeof BUILDTYPE === "string" && BUILDTYPE === "development" ) ? "http://localhost:8100/demo/testdata/" : " https://unpkg.com/@hms-dbmi-bgm/react-workflow-viz/demo/testdata/"
11+ const BASE_HREF = ( typeof BUILDTYPE === "string" && BUILDTYPE === "development" ) ? "http://localhost:8100/demo/testdata/" : ` https://unpkg.com/@hms-dbmi-bgm/react-workflow-viz@ ${ packageJSON . version } /demo/testdata/`
1112
1213const workflowOpts = {
1314 //"showReferenceFiles": true,
You can’t perform that action at this time.
0 commit comments