Skip to content

Commit

Permalink
wip: added error message for opening index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Nov 10, 2023
1 parent a7cfa17 commit 214404d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<body>
<div id="root"></div>
<script type="module" src="./src/main.tsx" data-prod-only></script>
<script data-always-remove>
if (!window?.txConsts) { document.body.innerHTML = '<p style="margin: 1rem;">Error: window.txConsts is undefined.<br />This likely means you didn\'t open this page through txAdmin.<br /><a class="bg-discord hover:bg-discord-active animate-pulse p-1 rounded-md" href="http://discord.gg/txAdmin" target="_blank" rel="noopener noreferrer">Support: discord.gg/txAdmin</a></p>'; }
</script>
<!-- {{customThemesStyle}} -->
</body>
</html>

0 comments on commit 214404d

Please sign in to comment.