Skip to content

Commit 6fcbfd6

Browse files
committed
feat: allow config from query string
So Notion embed works
1 parent 2a35009 commit 6fcbfd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export const App = () => {
3636
1900: 'Evening Activities',
3737
},
3838
}
39-
const hash = new URL(window.location.href).hash?.substr(1) ?? false
39+
const hash =
40+
new URLSearchParams(window.location.search).get('schedule') ??
41+
new URL(window.location.href).hash?.substr(1) ??
42+
false
4043

4144
if (hash) {
4245
cfg = {

0 commit comments

Comments
 (0)