Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
notwaldorf committed Oct 31, 2018
1 parent 049f1e3 commit 939dcee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?
Expand Down

0 comments on commit 939dcee

Please sign in to comment.