diff --git a/src/Pages/Layout.tsx b/src/Pages/Layout.tsx
index 9fa85ae8..34d5abc2 100644
--- a/src/Pages/Layout.tsx
+++ b/src/Pages/Layout.tsx
@@ -65,9 +65,9 @@ export default function Layout() {
() =>
publicKey
? totalUnread(
- dms.filter(a => !isMuted(a.pubkey)),
- publicKey
- )
+ dms.filter(a => !isMuted(a.pubkey)),
+ publicKey
+ )
: 0,
[dms, publicKey]
);
@@ -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);
diff --git a/src/index.tsx b/src/index.tsx
index bef709ab..585ff3e8 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -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:
+ element: ,
},
...NewUserRoutes,
],