INNER CODE UNIT · JavaScript

shouldAutoEnableSpector

NeoAxis/NeoAxisEngine · Project/Sources/NeoAxis.Player.Web/wwwroot/main.js:20

const shouldAutoEnableSpector = () =>
{
	if (!allowSpector)
		return false;

	const value = new URLSearchParams(window.location.search).get("spector");
	return value !== null && value !== "0" && value.toLowerCase() !== "false";
}

const loadScriptAsync = (src) =>
{
	return new Promise((resolve, reject) =>
	{
		const existing = document.querySelector(`script[data-src="${src}"]`);
		if (existing)
		{
			if (existing.dataset.loaded === "true" || globalThis.SPECTOR)
			{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…