Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed May 20, 2024
1 parent 387b7d1 commit d9e5685
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/3-visualiser/3-1-user-guide/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Adapters implement the [Visualiser Adapter Protocol](/docs/visualiser-adapter-pr

### Other adapters

| Name | URL | Connection Type | Description |
| --------------------- | ---------------------------------------------------------------------------------------------------------------- | --------------- | ------------------------------------ |
| Warthog (WebAssembly) | `https://cdn.jsdelivr.net/gh/ShortestPathLab/posthoc-adapter-warthog@adapter-warthog-wasm-dist/warthog-wasm.mjs` | Web Worker | Solver adapter for Warthog & Roadhog |
| Name | URL | Connection Type | Description |
| --------------------- | ---------------------------------------------------------------------------------------------------- | --------------- | ------------------------------------ |
| Warthog (WebAssembly) | `https://cdn.jsdelivr.net/gh/ShortestPathLab/posthoc-app@adapter-warthog-wasm-dist/warthog-wasm.mjs` | Web Worker | Solver adapter for Warthog & Roadhog |

[You can find more adapters here.](https://github.com/ShortestPathLab/posthoc-app)

Expand Down
11 changes: 11 additions & 0 deletions src/components/useTitleBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { useTheme } from "@mui/material";
import { useEffect } from "react";

export function useTitleBar() {
const { palette } = useTheme();
useEffect(() => {
document
.querySelector('meta[name="theme-color"]')!
.setAttribute("content", palette.background.default);
}, [palette.background.default]);
}
3 changes: 2 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { makeTheme } from "../components/theme";
import l10n from "./en-au.json";
import "./index.module.css";
import { PlayArrowOutlined } from "@mui/icons-material";
import { useTitleBar } from "../components/useTitleBar";

const themes = {
dark: makeTheme("dark"),
Expand Down Expand Up @@ -142,7 +143,7 @@ function Content() {
}

function ContentWithTheme() {
const [mode] = useContext(ModeContext);
useTitleBar();
return (
<CssBaseline>
<Content />
Expand Down

0 comments on commit d9e5685

Please sign in to comment.