set the player id cookie when loading the database and update the background image url logic
This commit is contained in:
@ -7,9 +7,5 @@ import { config } from "../../../config";
|
||||
* @returns the new image url
|
||||
*/
|
||||
export function getImageUrl(originalUrl: string) {
|
||||
// Remove the prepending slash
|
||||
if (originalUrl.startsWith("/")) {
|
||||
originalUrl = originalUrl.substring(1);
|
||||
}
|
||||
return `${!config.siteUrl.includes("localhost") ? "https://img.fascinated.cc/upload/q_70/" : ""}${originalUrl}`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user