diff --git a/controllers/prototype/views/sponza.jade b/controllers/prototype/views/sponza.jade index 1602e59..5bf6ef2 100644 --- a/controllers/prototype/views/sponza.jade +++ b/controllers/prototype/views/sponza.jade @@ -3,11 +3,13 @@ extends ./prototype_interactive block title title #{title} - Prototype - Arrows +block prepend js + script window.DB_DISABLED = true; + block mainjs script locked = false; script(src="/static/js/prototypeinteractive.min.js") script initMainScene = L3D.initSponza - script L3D.BD.disable(); block configjs script Recommendation = L3D.ArrowRecommendation; diff --git a/js/l3d/src/utils/Logger.js b/js/l3d/src/utils/Logger.js index 5b15cae..58a2f90 100644 --- a/js/l3d/src/utils/Logger.js +++ b/js/l3d/src/utils/Logger.js @@ -41,7 +41,7 @@ L3D.DB.Private.sendData = function(url, data, force) { * @memberof L3D.DB.Private * @type {Boolean} */ -L3D.DB.Private.enabled = true; +L3D.DB.Private.enabled = !window.DB_DISABLED; /** * Enables the requests