Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -114,7 +114,7 @@ function requireSignIn() {
|
|
| 114 |
document.getElementById('sign-in-message').style.removeProperty("display");
|
| 115 |
document.getElementById("signin").onclick = async function() {
|
| 116 |
// prompt=consent to re-trigger the consent screen instead of silently redirecting
|
| 117 |
-
window.location.href = (await oauthLoginUrl({scopes: window.huggingface.variables.OAUTH_SCOPES})) + "&prompt=consent"
|
| 118 |
};
|
| 119 |
// clear old oauth, if any
|
| 120 |
localStorage.removeItem("oauth");
|
|
|
|
| 114 |
document.getElementById('sign-in-message').style.removeProperty("display");
|
| 115 |
document.getElementById("signin").onclick = async function() {
|
| 116 |
// prompt=consent to re-trigger the consent screen instead of silently redirecting
|
| 117 |
+
window.location.href = (await oauthLoginUrl({scopes: window.huggingface.variables.OAUTH_SCOPES})) + "&prompt=consent";
|
| 118 |
};
|
| 119 |
// clear old oauth, if any
|
| 120 |
localStorage.removeItem("oauth");
|