|
@@ -19,7 +19,7 @@ const useGame = () => {
|
|
|
.then((res) => {
|
|
|
Toast.clear();
|
|
|
if (res.data && res.data.game_url) {
|
|
|
- const url = `${res.data?.game_url}&brand=${brand}&return_url=${process.env.NEXT_PUBLIC_SHARE_URL}`;
|
|
|
+ const url = `${encodeURI(res.data.game_url)}&brand=${brand}&return_url=${process.env.NEXT_PUBLIC_SHARE_URL}`;
|
|
|
const protocol = new URL(url).protocol;
|
|
|
if (
|
|
|
whiteUrls.indexOf(window.location.hostname) !== -1 ||
|