1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 06:55:28 +02:00

safety check for Intercom

This commit is contained in:
Harvey Kandola 2016-06-16 10:20:38 -07:00
parent f988123a64
commit 37d2946924

View file

@ -24,7 +24,7 @@ export default Ember.Service.extend({
}, },
record(id) { record(id) {
if (!this.get('enabled')) { if (!this.get('enabled') || is.empty(this.get('appId'))) {
return; return;
} }
@ -32,6 +32,8 @@ export default Ember.Service.extend({
this.start(); this.start();
} }
console.log();
Intercom('trackEvent', id); //jshint ignore: line Intercom('trackEvent', id); //jshint ignore: line
Intercom('update'); //jshint ignore: line Intercom('update'); //jshint ignore: line
}, },