diff --git a/src/app/Utils.ts b/src/app/Utils.ts
index 207f5067..c2f73657 100644
--- a/src/app/Utils.ts
+++ b/src/app/Utils.ts
@@ -11,6 +11,8 @@ import config from './Config.js'
import type { VersionId } from './services/index.js'
import { checkVersion } from './services/index.js'
+export const SOURCE_REPO_URL = 'https://github.com/misode/misode.github.io'
+
export function isPromise(obj: any): obj is Promise {
return typeof (obj as any)?.then === 'function'
}
diff --git a/src/app/components/ErrorPanel.tsx b/src/app/components/ErrorPanel.tsx
index 5b6c49f5..f9b37039 100644
--- a/src/app/components/ErrorPanel.tsx
+++ b/src/app/components/ErrorPanel.tsx
@@ -6,7 +6,7 @@ import { useSpyglass } from '../contexts/Spyglass.jsx'
import { useVersion } from '../contexts/Version.jsx'
import { useAsync } from '../hooks/useAsync.js'
import { latestVersion } from '../services/DataFetcher.js'
-import { getGenerator } from '../Utils.js'
+import { getGenerator, SOURCE_REPO_URL } from '../Utils.js'
import { Octicon } from './index.js'
type ErrorPanelProps = {
@@ -55,7 +55,7 @@ export function ErrorPanel({ error, prefix, reportable, onDismiss, body: body_,
}, [error])
const url = useMemo(() => {
- let url ='https://github.com/misode/misode.github.io/issues/new'
+ let url =`${SOURCE_REPO_URL}/issues/new`
const fullName = (error instanceof Error ? `${error.name}: ` : '') + name
url += `?title=${encodeURIComponent(fullName)}`
let body = ''
diff --git a/src/app/components/Footer.tsx b/src/app/components/Footer.tsx
index ca2a13b0..cf2e24f1 100644
--- a/src/app/components/Footer.tsx
+++ b/src/app/components/Footer.tsx
@@ -1,4 +1,5 @@
import { useLocale } from '../contexts/index.js'
+import { SOURCE_REPO_URL } from '../Utils.js'
import { Octicon } from './index.js'
interface Props {
@@ -17,7 +18,7 @@ export function Footer({ donate }: Props) {
}
{Octicon.mark_github}
- {locale('source_code_on')} {locale('github')}
+ {locale('source_code_on')} {locale('github')}
}
diff --git a/src/app/components/Header.tsx b/src/app/components/Header.tsx
index e7125e9c..8091f987 100644
--- a/src/app/components/Header.tsx
+++ b/src/app/components/Header.tsx
@@ -2,7 +2,7 @@ import { getCurrentUrl, Link, route } from 'preact-router'
import config from '../Config.js'
import { useLocale, useTheme, useTitle, useVersion } from '../contexts/index.js'
import { checkVersion } from '../services/index.js'
-import { cleanUrl, getGenerator } from '../Utils.js'
+import { cleanUrl, getGenerator, SOURCE_REPO_URL } from '../Utils.js'
import { Btn, BtnMenu, Icons, Octicon } from './index.js'
const Themes: Record = {
@@ -50,7 +50,7 @@ export function Header() {
-
+
{Octicon.mark_github}