formatting
This commit is contained in:
parent
d7dabecde4
commit
f6a01e5414
@ -65,9 +65,9 @@ export default function Layout() {
|
|||||||
() =>
|
() =>
|
||||||
publicKey
|
publicKey
|
||||||
? totalUnread(
|
? totalUnread(
|
||||||
dms.filter(a => !isMuted(a.pubkey)),
|
dms.filter(a => !isMuted(a.pubkey)),
|
||||||
publicKey
|
publicKey
|
||||||
)
|
)
|
||||||
: 0,
|
: 0,
|
||||||
[dms, publicKey]
|
[dms, publicKey]
|
||||||
);
|
);
|
||||||
@ -141,8 +141,11 @@ export default function Layout() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if ("registerProtocolHandler" in window.navigator) {
|
if ("registerProtocolHandler" in window.navigator) {
|
||||||
window.navigator.registerProtocolHandler("web+nostr", `${window.location.protocol}//${window.location.host}/handler/%s`);
|
window.navigator.registerProtocolHandler(
|
||||||
console.info("Registered protocol handler for \"nostr\"");
|
"web+nostr",
|
||||||
|
`${window.location.protocol}//${window.location.host}/handler/%s`
|
||||||
|
);
|
||||||
|
console.info("Registered protocol handler for 'web+nostr'");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Failed to register protocol handler", e);
|
console.error("Failed to register protocol handler", e);
|
||||||
|
@ -25,7 +25,7 @@ import HashTagsPage from "Pages/HashTagsPage";
|
|||||||
import SearchPage from "Pages/SearchPage";
|
import SearchPage from "Pages/SearchPage";
|
||||||
import HelpPage from "Pages/HelpPage";
|
import HelpPage from "Pages/HelpPage";
|
||||||
import { NewUserRoutes } from "Pages/new";
|
import { NewUserRoutes } from "Pages/new";
|
||||||
import NostrLinkHandler from 'Pages/NostrLinkHandler';
|
import NostrLinkHandler from "Pages/NostrLinkHandler";
|
||||||
import { IntlProvider } from "./IntlProvider";
|
import { IntlProvider } from "./IntlProvider";
|
||||||
import { unwrap } from "Util";
|
import { unwrap } from "Util";
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ export const router = createBrowserRouter([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/handler/*",
|
path: "/handler/*",
|
||||||
element: <NostrLinkHandler />
|
element: <NostrLinkHandler />,
|
||||||
},
|
},
|
||||||
...NewUserRoutes,
|
...NewUserRoutes,
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user