diff --git a/demo/js/Demo.js b/demo/js/Demo.js index 5717af8..36ef2ba 100644 --- a/demo/js/Demo.js +++ b/demo/js/Demo.js @@ -19,8 +19,10 @@ Query = Matter.Query; // MatterTools aliases - var Gui = MatterTools.Gui, - Inspector = MatterTools.Inspector; + if (window.MatterTools) { + var Gui = MatterTools.Gui, + Inspector = MatterTools.Inspector; + } var Demo = {};