Initial project commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { SERVER_ORIGIN } from "./config";
|
||||
|
||||
export const resolveImageUrl = (url) => {
|
||||
if (!url) return "";
|
||||
if (url.startsWith("http://") || url.startsWith("https://")) return url;
|
||||
return SERVER_ORIGIN + url;
|
||||
};
|
||||
Reference in New Issue
Block a user