Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
discdiver committed Jun 14, 2024
1 parent d5a7ef8 commit f3ce5e9
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ function loadScript(src, onload) {
return script
}

function loadCommonRoom() {
const url = 'https://cdn.cr-relay.com/v1/site/5c7cdf16-fbc0-4bb8-b39e-a8c6136687b9/signals.js'
const init = () => {
window.signals = Object.assign(
[],
['page', 'identify', 'form'].reduce(function (acc, method) {
acc[method] = function () {
signals.push([method, arguments])
return signals
}
return acc
}, {})
)
}

loadScript(url, init)
}
// function loadCommonRoom() {
// const url = 'https://cdn.cr-relay.com/v1/site/5c7cdf16-fbc0-4bb8-b39e-a8c6136687b9/signals.js'
// const init = () => {
// window.signals = Object.assign(
// [],
// ['page', 'identify', 'form'].reduce(function (acc, method) {
// acc[method] = function () {
// signals.push([method, arguments])
// return signals
// }
// return acc
// }, {})
// )
// }

// loadScript(url, init)
// }

function loadAmplitude() {
// TODO: Move the key and url to an env var in mintlify
Expand Down Expand Up @@ -120,5 +120,5 @@ function loadAmplitude() {
}


loadCommonRoom()
// loadCommonRoom()
loadAmplitude()

0 comments on commit f3ce5e9

Please sign in to comment.