Actualizar panel.html
This commit is contained in:
@@ -194,10 +194,6 @@
|
|||||||
<script src="js/layout.js"></script>
|
<script src="js/layout.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const API_URL = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
|
|
||||||
? 'http://localhost:3000'
|
|
||||||
: 'https://integrarepara-api.integrarepara.es';
|
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const token = localStorage.getItem("token");
|
const token = localStorage.getItem("token");
|
||||||
if(!token) window.location.href = "index.html";
|
if(!token) window.location.href = "index.html";
|
||||||
|
|||||||
Reference in New Issue
Block a user