diff --git a/js/adapt-contrib-spoor.js b/js/adapt-contrib-spoor.js index 12e70bb0..4fd82598 100644 --- a/js/adapt-contrib-spoor.js +++ b/js/adapt-contrib-spoor.js @@ -22,7 +22,7 @@ define(function(require) { initialize: function() { this.data = Adapt.config.get('_spoor'); - if (this.data._isEnabled === false) return; + if (!this.data || this.data._isEnabled === false) return; this.SCOStart() ; $(window).unload(_.bind(this.SCOFinish, this)); this.onDataReady(); @@ -138,4 +138,4 @@ define(function(require) { Adapt.on('app:dataReady', function() { new Spoor(); }); -}); \ No newline at end of file +});