mirror of
https://github.com/documize/community.git
synced 2025-07-25 16:19:46 +02:00
fixed Intercom not recording
This commit is contained in:
parent
5bf63cf789
commit
ade749a7ba
2 changed files with 582 additions and 581 deletions
|
@ -61,10 +61,10 @@ export default Ember.Service.extend({
|
||||||
|
|
||||||
window.intercomSettings = {
|
window.intercomSettings = {
|
||||||
app_id: this.get('appId'),
|
app_id: this.get('appId'),
|
||||||
name: user.fullname,
|
name: user.get('fullname'),
|
||||||
email: user.email,
|
email: user.get('email'),
|
||||||
user_id: user.id,
|
user_id: user.get('id'),
|
||||||
"administrator": user.admin,
|
"administrator": user.get('admin'),
|
||||||
company: {
|
company: {
|
||||||
id: self.get('appMeta.orgId'),
|
id: self.get('appMeta.orgId'),
|
||||||
name: self.get('appMeta.title'),
|
name: self.get('appMeta.title'),
|
||||||
|
@ -74,9 +74,10 @@ export default Ember.Service.extend({
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!this.get('session.isMobile')) {
|
if (!this.get('session.isMobile')) {
|
||||||
window.intercomSettings.widget = {
|
// uncomment these lines if you want to use Intercom messenger within Documize
|
||||||
activator: "#IntercomDefaultWidget"
|
// window.intercomSettings.widget = {
|
||||||
};
|
// activator: "#IntercomDefaultWidget"
|
||||||
|
// };
|
||||||
}
|
}
|
||||||
|
|
||||||
window.Intercom('boot', window.intercomSettings);
|
window.Intercom('boot', window.intercomSettings);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue