Skip to content
Snippets Groups Projects
Commit 19fcb2b3 authored by Eloi Perdereau's avatar Eloi Perdereau
Browse files

fix script netlifyCMS

parent c841e7cb
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ feature_row: ...@@ -41,7 +41,7 @@ feature_row:
window.netlifyIdentity.on("init", user => { window.netlifyIdentity.on("init", user => {
if (!user) { if (!user) {
window.netlifyIdentity.on("login", () => { window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/"; document.location.href = "/lepuget/";
}); });
} }
}); });
......
...@@ -15,17 +15,6 @@ ...@@ -15,17 +15,6 @@
CMS.registerLocale('fr', fr); CMS.registerLocale('fr', fr);
</script> </script>
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
<!-- Include the script that builds the page and powers Netlify CMS --> <!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body> </body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment