handle download poster and qrcode, fix to show timestamp, add pagination to doctors page
This commit is contained in:
@@ -4,8 +4,9 @@ import statesData from "@/data/state.json";
|
||||
|
||||
export function getStateInfoClient() {
|
||||
if (typeof window === "undefined")
|
||||
return { matchedCity: null, matchedState: null };
|
||||
return { matchedCity: null, matchedState: null, fullUrl: "" };
|
||||
|
||||
const fullUrl = window.location.href; // کل URL
|
||||
const host = window.location.host || "";
|
||||
const subdomain = host.split(".")[0];
|
||||
|
||||
@@ -17,5 +18,5 @@ export function getStateInfoClient() {
|
||||
matchedCity &&
|
||||
statesData.find((state) => state.id === matchedCity.province_id);
|
||||
|
||||
return { matchedCity, matchedState };
|
||||
return { matchedCity, matchedState, host, fullUrl };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user