mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
1577634144
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
631 B
JavaScript
20 lines
631 B
JavaScript
(function() {
|
|
if (typeof window === 'undefined') return;
|
|
if (typeof window.signals !== 'undefined') return;
|
|
var script = document.createElement('script');
|
|
script.src = 'https://cdn.cr-proxy.com/v1/site/490c2ca5-fc40-4750-bfa5-6194ac5883a6/signals.js';
|
|
script.async = true;
|
|
window.signals = Object.assign(
|
|
[],
|
|
{ _opts: { apiHost: 'https://api.cr-proxy.com' } },
|
|
['page', 'identify', 'form'].reduce(function (acc, method){
|
|
acc[method] = function () {
|
|
signals.push([method, arguments]);
|
|
return signals;
|
|
};
|
|
return acc;
|
|
}, {})
|
|
);
|
|
document.head.appendChild(script);
|
|
})();
|