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';
2
2
import ReactDOM from 'react-dom' ;
3
3
import _ from 'underscore' ;
4
4
import url from 'url' ;
5
+ import { default as packageJSON } from './../package.json' ;
5
6
6
7
// Loaded on index.html, defined as an external in webpack.config.demo.js
7
8
import Graph , { GraphParser } from 'react-workflow-viz' ;
8
9
9
10
// 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/`
11
12
12
13
const workflowOpts = {
13
14
//"showReferenceFiles": true,
You can’t perform that action at this time.
0 commit comments