Skip to content

Commit

Permalink
Add debug statement to testing grounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed May 17, 2024
1 parent b187bfc commit 6bea3d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/profile-setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { SUPABASE } from "./db";

{ // Counter for character count
for(const counter of document.getElementsByClassName('char-count')) {
const associatedId = counter.getAttribute('for');
Expand Down
5 changes: 4 additions & 1 deletion testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

<button id="login">Test button</button>

<script type="module" src="/js/db.js"></script>
<script type="module">
import { SUPABASE } from '/js/db.js';

SUPABASE.auth.getUser().then(console.log).catch(console.error); // DEBUG

document.getElementById("login").addEventListener("click", async () =>
await SUPABASE.auth.signInWithOAuth({
provider: "discord",
Expand Down

0 comments on commit 6bea3d6

Please sign in to comment.