Skip to content

Commit

Permalink
bring back
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Nov 28, 2023
1 parent 2477fe9 commit 8c0339e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
13 changes: 0 additions & 13 deletions ui/public/_headers

This file was deleted.

11 changes: 11 additions & 0 deletions ui/public/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[headers]]
for = "/converter/fc"
[headers.values]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

[[headers]]
for = "/assets/worker-*"
[headers.values]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"
12 changes: 6 additions & 6 deletions ui/src/components/Layouts/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const Menu: React.FC<MenuProps> = ({ collapsed }) => {

const onClick = (e: { key: To }) => {
navigate(e.key);
// if (
// ["/converter/fc", "/feedback", "/newsfeed"].includes(
// e.key as string
// )
// )
// navigate(0);
if (
["/converter/fc", "/feedback", "/newsfeed"].includes(
e.key as string
)
)
navigate(0);
};

return (
Expand Down

0 comments on commit 8c0339e

Please sign in to comment.