Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
<script type="module">
|
30 |
import { oauthLoginUrl, oauthHandleRedirectIfPresent } from "@huggingface/hub";
|
31 |
|
32 |
-
const oauthResult = localStorage.
|
33 |
|
34 |
if (oauthResult) {
|
35 |
document.querySelector("pre").textContent = JSON.stringify(oauthResult, null, 2);
|
|
|
29 |
<script type="module">
|
30 |
import { oauthLoginUrl, oauthHandleRedirectIfPresent } from "@huggingface/hub";
|
31 |
|
32 |
+
const oauthResult = localStorage.getItem("oauth") || await oauthHandleRedirectIfPresent();
|
33 |
|
34 |
if (oauthResult) {
|
35 |
document.querySelector("pre").textContent = JSON.stringify(oauthResult, null, 2);
|