mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 11:25:04 +01:00
support multiple projects
This commit is contained in:
parent
908cf09e14
commit
450ef8a3f1
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue