Actualizar panel.html
This commit is contained in:
@@ -194,10 +194,6 @@
|
||||
<script src="js/layout.js"></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", () => {
|
||||
const token = localStorage.getItem("token");
|
||||
if(!token) window.location.href = "index.html";
|
||||
|
||||
Reference in New Issue
Block a user