Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if(checkBrowCompatibility()){
viewManager = new ViewManager();
console.log("Checking Host: ");
console.log(window.location.host);
if(window.location.host === "3duf.org"){
console.log("Enabling TrackJS");
TrackJS.install({
token: "1f4d3a9c263e4e3fb2fe4c7f96f8808e"
});
viewManager = TrackJS.watchAll(viewManager);
}
Registry.viewManager = viewManager;
viewManager.loadDeviceFromJSON(JSON.parse(Examples.example2));
viewManager.updateGrid();
Registry.currentDevice.updateView();
window.dev = Registry.currentDevice;
window.Registry = Registry;
window.view = Registry.viewManager.view;
// Registry.threeRenderer = new ThreeDeviceRenderer(document.getElementById("renderContainer"));