0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 14:28:40 +00:00

fix for admin pages to work

This commit is contained in:
Víctor Losada Hernández
2026-04-05 16:02:19 +02:00
parent 7d54261f51
commit 59ceea81cc
+3 -3
View File
@@ -25,12 +25,12 @@
let prefix = '';
if (url.includes('://homebrewery-stage.')) {
if (url && url?.includes('://homebrewery-stage.')) {
prefix = `Stage `;
} else if (url.includes('://homebrewery-pr-')) {
} else if (url?.includes('://homebrewery-pr-')) {
const match = url.match(/pr-(\d+)/);
if (match) prefix = `PR-${match[1]} `;
} else if (url.includes('://localhost')) {
} else if (url?.includes('://localhost')) {
prefix = 'Local ';
}