From 450ef8a3f184e23fd7df55a8db897f3ce31df6c2 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Sat, 12 Sep 2015 02:19:02 -0700 Subject: [PATCH] support multiple projects --- web/app/3d/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/3d/main.js b/web/app/3d/main.js index 5119c6df..d9d34f0c 100644 --- a/web/app/3d/main.js +++ b/web/app/3d/main.js @@ -2,7 +2,10 @@ TCAD = {}; TCAD.App = function() { - this.id = "DEFAULT"; + this.id = window.location.hash.substring(1); + if (!this.id) { + this.id = "DEFAULT"; + } this.bus = new TCAD.Bus(); this.viewer = new TCAD.Viewer(this.bus); this.ui = new TCAD.UI(this);