Something went wrong. Try again.
mirror of github.com/PrefectHQ/fastmcp
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475// Load Unify intent tag on selected pages(function () { if (typeof window === "undefined") return;
function isTaggedPage() { var path = window.location.pathname; return ( path.includes("/servers/auth/") || path.includes("/clients/auth/") || path.includes("/deployment/running-server") || path.includes("/deployment/http") || path.includes("/deployment/prefect-horizon") ); }
function loadUnify() { var e = [ "identify", "page", "startAutoPage", "stopAutoPage", "startAutoIdentify", "stopAutoIdentify", ]; function t(o) { return Object.assign( [], e.reduce(function (r, n) { r[n] = function () { return o.push([n, [].slice.call(arguments)]), o; }; return r; }, {}), ); } if (!window.unify) window.unify = t(window.unify); if (!window.unifyBrowser) window.unifyBrowser = t(window.unifyBrowser);
var n = document.createElement("script"); n.async = true; n.setAttribute( "src", "https://tag.unifyintent.com/v1/Rj9KrQqMhyYcU5qfJtVszE/script.js", ); n.setAttribute( "data-api-key", "wk_SBvJ4jyD_wRgPAHCNJb89seVmREhcj2NspRpxAywi", ); n.setAttribute("id", "unifytag"); (document.body || document.head).appendChild(n); }
function update() { if (isTaggedPage() && !document.getElementById("unifytag")) { loadUnify(); } else if (!isTaggedPage() && document.getElementById("unifytag")) { document.getElementById("unifytag").remove(); } }
if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", update); } else { update(); }
var lastUrl = location.href; new MutationObserver(function () { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(update, 100); } }).observe(document.body, { subtree: true, childList: true });})();