From 78bef9550f39543cf569022afdb2121709dd0477 Mon Sep 17 00:00:00 2001 From: Forrest Li Date: Thu, 29 Mar 2018 00:34:18 -0400 Subject: [PATCH] fix(index): Set app mode as url parameter --- Sources/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/index.js b/Sources/index.js index 10565f87..cb063118 100644 --- a/Sources/index.js +++ b/Sources/index.js @@ -27,7 +27,10 @@ export const { } = ReaderFactory; export const { registerControlTab, unregisterControlTab } = Controls; -export function createViewer(container, proxyConfiguration = Configs.Generic) { +export function createViewer(container, proxyConfig = null) { + const { mode } = vtkURLExtract.extractURLParameters(); + const proxyConfiguration = proxyConfig || Configs[mode] || Configs.Generic; + const proxyManager = vtkProxyManager.newInstance({ proxyConfiguration }); const mainView = ReactDOM.render( ,