From 939dcee9b81ba9d48969c69bf970beece0340581 Mon Sep 17 00:00:00 2001 From: Monica Dinculescu Date: Wed, 31 Oct 2018 11:35:15 -0700 Subject: [PATCH] fix path --- script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index e43f63d..5198414 100644 --- a/script.js +++ b/script.js @@ -3,8 +3,10 @@ import { AppManager } from './app_manager.js'; import { TYPES, svgNS, getLocationHash, drawMusicLine } from './utils.js'; // Globals, globals for everyone. +// TODO: fix this parsing const KIND = window.location.pathname.substr(1).replace('.html','') - .replace('nips-workshop-visualization/',''); + .replace('nips-workshop-visualization/','') + .replace('/transformer-visualization/', ''); let initialConfig = {}; initialConfig.url = KIND === TYPES.BACH ?