|
|
@ -53,7 +53,7 @@ export default class IntercomClient { |
|
|
* @returns Intercom global object |
|
|
* @returns Intercom global object |
|
|
*/ |
|
|
*/ |
|
|
show(user = {}) { |
|
|
show(user = {}) { |
|
|
if (!this.initialised || !user?.admin?.global) return |
|
|
if (!this.initialised || !user?.admin) return |
|
|
|
|
|
|
|
|
return window.Intercom("boot", { |
|
|
return window.Intercom("boot", { |
|
|
app_id: this.token, |
|
|
app_id: this.token, |
|
|
|