mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: url object notation found work
This commit is contained in:
1 parent
d1fe7f6533
commit
b2c4bfc926
3 files changed
+3
-1
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
import { Box, Button, Flex, Heading, ScrollArea, Text } from '@radix-ui/themes';
|
||||
import { capitalize, startCase } from 'lodash';
|
||||
import { ReactNode, useEffect, useRef, useState } from 'react';
|
||||
import { stringify } from 'urlon';
|
||||
import { CopyButton } from '../../../../components/CopyButton';
|
||||
import { NAVBAR_HEIGHT } from '../../../../components/Navbar';
|
||||
import PageWrapper from '../../../../components/PageWrapper';
|
||||
@@ -94,7 +95,7 @@ export default function Page({
|
||||
|
||||
const searchParams = new URLSearchParams({
|
||||
id: `${wargaming.id}`,
|
||||
state: JSON.stringify(shallowState),
|
||||
state: stringify(shallowState),
|
||||
});
|
||||
|
||||
return `${location.origin}/tools/embed/${params.embed}/host?${searchParams.toString()}`;
|
||||
|
||||
Reference in new issue
Block a user