support multiple projects

This commit is contained in:
Val Erastov 2015-09-12 02:19:02 -07:00
parent 908cf09e14
commit 450ef8a3f1

View file

@ -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);