formatting

This commit is contained in:
Kieran 2023-02-14 11:08:25 +00:00
parent d7dabecde4
commit f6a01e5414
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 10 additions and 7 deletions

View File

@ -141,8 +141,11 @@ export default function Layout() {
try {
if ("registerProtocolHandler" in window.navigator) {
window.navigator.registerProtocolHandler("web+nostr", `${window.location.protocol}//${window.location.host}/handler/%s`);
console.info("Registered protocol handler for \"nostr\"");
window.navigator.registerProtocolHandler(
"web+nostr",
`${window.location.protocol}//${window.location.host}/handler/%s`
);
console.info("Registered protocol handler for 'web+nostr'");
}
} catch (e) {
console.error("Failed to register protocol handler", e);

View File

@ -25,7 +25,7 @@ import HashTagsPage from "Pages/HashTagsPage";
import SearchPage from "Pages/SearchPage";
import HelpPage from "Pages/HelpPage";
import { NewUserRoutes } from "Pages/new";
import NostrLinkHandler from 'Pages/NostrLinkHandler';
import NostrLinkHandler from "Pages/NostrLinkHandler";
import { IntlProvider } from "./IntlProvider";
import { unwrap } from "Util";
@ -96,7 +96,7 @@ export const router = createBrowserRouter([
},
{
path: "/handler/*",
element: <NostrLinkHandler />
element: <NostrLinkHandler />,
},
...NewUserRoutes,
],