Skip to content

Commit 9b8c09b

Browse files
committed
feat: Nouveau domaine pour CROUStillant
1 parent 4e22e53 commit 9b8c09b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ console.info(`[Better IUT RCC] Thème actif : ${activeTheme}`);
243243
var restaurant = document.getElementById("restaurant").value;
244244
var img = document.getElementById("image-menu");
245245

246-
img.src = "https://api-croustillant.bayfield.dev/v1/restaurants/" + restaurant + "/menu/" + date + "/image" + theme;
246+
img.src = "https://api.croustillant.menu/v1/restaurants/" + restaurant + "/menu/" + date + "/image" + theme;
247247

248248
browser.storage.local.set({ darkTheme: document.querySelector('body').classList.contains('dark-theme') });
249249

@@ -295,7 +295,7 @@ console.info(`[Better IUT RCC] Thème actif : ${activeTheme}`);
295295
var restaurant = document.getElementById("restaurant").value;
296296
var img = document.getElementById("image-menu");
297297

298-
img.src = "https://api-croustillant.bayfield.dev/v1/restaurants/" + restaurant + "/menu/" + date + "/image" + theme;
298+
img.src = "https://api.croustillant.menu/v1/restaurants/" + restaurant + "/menu/" + date + "/image" + theme;
299299

300300
console.info("[Better IUT RCC] Menu du CROUS actualisé !");
301301

@@ -322,7 +322,7 @@ console.info(`[Better IUT RCC] Thème actif : ${activeTheme}`);
322322
year: 'numeric'
323323
}).split('/').join('-');
324324

325-
img.src = "https://api-croustillant.bayfield.dev/v1/restaurants/" + restaurant + "/menu/" + date + "/image" + theme;
325+
img.src = "https://api.croustillant.menu/v1/restaurants/" + restaurant + "/menu/" + date + "/image" + theme;
326326
});
327327

328328
const restaurant = await browser.storage.local.get('restaurant');
@@ -343,7 +343,7 @@ console.info(`[Better IUT RCC] Thème actif : ${activeTheme}`);
343343
}).split('/').join('-');
344344

345345
var img = document.getElementById("image-menu");
346-
img.src = "https://api-croustillant.bayfield.dev/v1/restaurants/" + restaurant.restaurant + "/menu/" + date + "/image" + theme;
346+
img.src = "https://api.croustillant.menu/v1/restaurants/" + restaurant.restaurant + "/menu/" + date + "/image" + theme;
347347

348348
console.info("[Better IUT RCC] Menu du CROUS restauré !");
349349
}

0 commit comments

Comments
 (0)