fix : PR#57 game loading from URL

This commit is contained in:
GuillaumeSD
2025-07-04 17:21:46 +02:00
parent 7cbad399ed
commit aece5db7ce
3 changed files with 39 additions and 55 deletions

View File

@@ -26,9 +26,3 @@ export const decodeBase64 = (encoded: string | null): string | null => {
return null;
}
};
export const decodeBase64Param = (param: string): string | null => {
const params = new URLSearchParams(location.search);
const encodedParam = params.get(param);
return decodeBase64(encodedParam);
};