Skip to content

Commit 9344161

Browse files
committed
Update URL for demo (low priority)
1 parent 20eb68f commit 9344161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import { Component } from 'react';
22
import ReactDOM from 'react-dom';
33
import _ from 'underscore';
44
import 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
78
import 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

1213
const workflowOpts = {
1314
//"showReferenceFiles": true,

0 commit comments

Comments
 (0)