debug console

This commit is contained in:
Nastya 2024-10-18 01:52:16 +03:00
parent b3bee6e951
commit ee4120d0bc

@ -160,6 +160,20 @@
</div>
</noscript>
<!-- /Yandex.Metrika counter -->
<script>
let params = new URLSearchParams(document.location.search);
console.log(params.get("debug"))
if (params.get("debug")) {
console.log(
"mhgfhdhfjhffhfhjfghjgf"
)
let scriptTag = document.createElement('script');
scriptTag.setAttribute('src', "https://markknol.github.io/console-log-viewer/console-log-viewer.js");
scriptTag.setAttribute('async', '');
document.getElementsByTagName("head")[0].append(scriptTag);
}
</script>
</head>
<body>