Apply previous changes: slack webhooks, date range issue, 12h am/pm format, today preifl, api-keys
This commit is contained in:
@@ -44,7 +44,7 @@ export default {
|
||||
}
|
||||
},
|
||||
loadAmplitude () {
|
||||
if (this.loaded || !typeof window.amplitude === 'undefined') return
|
||||
if (this.loaded || !typeof window.amplitude === 'undefined' || !window.config.amplitude_code) return
|
||||
|
||||
(function (e, t) {
|
||||
const n = e.amplitude || { _q: [], _iq: {} }; const r = t.createElement('script')
|
||||
@@ -88,7 +88,7 @@ export default {
|
||||
})(window, document)
|
||||
|
||||
this.amplitudeInstance = window.amplitude.getInstance()
|
||||
this.amplitudeInstance.init('9952c8b914ce3f2bd494fce2dba18243')
|
||||
this.amplitudeInstance.init(window.config.amplitude_code)
|
||||
this.loaded = true
|
||||
this.authenticateUser()
|
||||
}
|
||||
|
||||
@@ -18,10 +18,10 @@ export default {
|
||||
|
||||
methods: {
|
||||
loadCrisp () {
|
||||
if (this.isIframe) return
|
||||
if (this.isIframe || !window.config.crisp_website_id) return
|
||||
|
||||
window.$crisp = []
|
||||
window.CRISP_WEBSITE_ID = '94219d77-06ff-4aec-b07a-5bf26ec8fde1'
|
||||
window.CRISP_WEBSITE_ID = window.config.crisp_website_id
|
||||
|
||||
const script = document.createElement('script')
|
||||
script.setAttribute('src', 'https://client.crisp.chat/l.js')
|
||||
|
||||
Reference in New Issue
Block a user