Skip to content

Commit

Permalink
Revert "Merge pull request #29 from fabric-testbed/update/develop"
Browse files Browse the repository at this point in the history
This reverts commit b19e90d, reversing
changes made to c247349.
  • Loading branch information
suejinkim20 committed Sep 6, 2024
1 parent d2b6846 commit 79c55b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Deploy

on:
push:
branches: [ "develop" ]
branches: [ "main" ]

permissions:
contents: write
Expand Down
10 changes: 3 additions & 7 deletions src/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
<title>FABRIC KNIT Workshop 404</title>

<script>
const path = location.pathname.substr(1);
if (path && path !== '') {
location.replace('/#/' + path);
window.alert("path", path, "pathname", location.pathname)
} else {
location.replace('/#/');
}
sessionStorage.redirect = location.href;
</script>

<meta http-equiv="refresh" content="0;URL='/'"></meta>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { App } from './app'
import { createRoot } from 'react-dom/client'
import { HashRouter } from 'react-router-dom'
import { BrowserRouter } from 'react-router-dom'
import { CssVarsProvider } from '@mui/joy/styles'
import { theme } from './theme'

Expand All @@ -9,9 +9,9 @@ const root = createRoot(container)

const ProvisionedApp = () => (
<CssVarsProvider theme={ theme }>
<HashRouter>
<BrowserRouter>
<App />
</HashRouter>
</BrowserRouter>
</CssVarsProvider>
)

Expand Down

0 comments on commit 79c55b9

Please sign in to comment.