We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4660878 commit f092344Copy full SHA for f092344
src/app/bigtextview/page.tsx
@@ -7,8 +7,8 @@ export default function Page() {
7
const [text, setText] = useState("");
8
9
useEffect(() => {
10
- const hash = window.location.hash;
11
- setText(hash);
+ const hash = window.location.hash ?? "";
+ setText(hash.replace(/^#/, ""));
12
}, []);
13
14
return(<div className={styles.BigTextView}>
0 commit comments