diff --git a/package.json b/package.json index f272c10a..54de1639 100755 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "Seedit", "version": "0.5.6", "description": "A GUI for plebbit similar to old.reddit", + "author": "Plebbit Labs", "type": "module", "license": "GPL-2.0-only", "private": true, @@ -11,7 +12,7 @@ "@capacitor/status-bar": "7.0.1", "@capawesome/capacitor-android-edge-to-edge-support": "7.2.2", "@floating-ui/react": "0.26.1", - "@plebbit/plebbit-react-hooks": "https://github.com/plebbit/plebbit-react-hooks.git#9f657e05b7d77ea01fc09263fba8576699aa96fc", + "@plebbit/plebbit-react-hooks": "https://github.com/plebbit/plebbit-react-hooks.git#0bdb95a801e2ccfa94d0aebc8d3347e8afd7ef3e", "@testing-library/jest-dom": "5.14.1", "@testing-library/react": "13.0.0", "@testing-library/user-event": "13.2.1", diff --git a/src/index.tsx b/src/index.tsx index 69b10820..5d3e3206 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -10,6 +10,12 @@ import './preload-assets.css'; import { App as CapacitorApp } from '@capacitor/app'; import { registerSW } from 'virtual:pwa-register'; +if (window.location.hostname.startsWith('p2p.')) { + (window as any).defaultPlebbitOptions = { + libp2pJsClientsOptions: [{ key: 'libp2pjs' }], + }; +} + const reloadSW = registerSW({ immediate: true, onNeedRefresh() { diff --git a/yarn.lock b/yarn.lock index 6e4b5a7e..e2dcc13f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3703,9 +3703,9 @@ resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@plebbit/plebbit-js@https://github.com/plebbit/plebbit-js.git#1f08af3c40f264dd51dddf6ef60594d568dfdbad": +"@plebbit/plebbit-js@https://github.com/plebbit/plebbit-js.git#6612569127ae5c62906b2e66a96c8735a207af0a": version "0.0.7" - resolved "https://github.com/plebbit/plebbit-js.git#1f08af3c40f264dd51dddf6ef60594d568dfdbad" + resolved "https://github.com/plebbit/plebbit-js.git#6612569127ae5c62906b2e66a96c8735a207af0a" dependencies: "@bonfida/spl-name-service" "3.0.10" "@chainsafe/libp2p-gossipsub" "14.1.1" @@ -3842,11 +3842,11 @@ dependencies: debug "4.3.4" -"@plebbit/plebbit-react-hooks@https://github.com/plebbit/plebbit-react-hooks.git#9f657e05b7d77ea01fc09263fba8576699aa96fc": +"@plebbit/plebbit-react-hooks@https://github.com/plebbit/plebbit-react-hooks.git#0bdb95a801e2ccfa94d0aebc8d3347e8afd7ef3e": version "0.0.1" - resolved "https://github.com/plebbit/plebbit-react-hooks.git#9f657e05b7d77ea01fc09263fba8576699aa96fc" + resolved "https://github.com/plebbit/plebbit-react-hooks.git#0bdb95a801e2ccfa94d0aebc8d3347e8afd7ef3e" dependencies: - "@plebbit/plebbit-js" "https://github.com/plebbit/plebbit-js.git#a8754456fd2cd061a2b050d73beee588483d6714" + "@plebbit/plebbit-js" "https://github.com/plebbit/plebbit-js.git#6612569127ae5c62906b2e66a96c8735a207af0a" "@plebbit/plebbit-logger" "https://github.com/plebbit/plebbit-logger.git" assert "2.0.0" ethers "5.6.9" @@ -3858,11 +3858,11 @@ uuid "8.3.2" zustand "4.0.0" -"@plebbit/plebbit-react-hooks@https://github.com/plebbit/plebbit-react-hooks.git#bf0471c4a40b83428b692a125fd0cb32c3af416f": +"@plebbit/plebbit-react-hooks@https://github.com/plebbit/plebbit-react-hooks.git#9f657e05b7d77ea01fc09263fba8576699aa96fc": version "0.0.1" - resolved "https://github.com/plebbit/plebbit-react-hooks.git#bf0471c4a40b83428b692a125fd0cb32c3af416f" + resolved "https://github.com/plebbit/plebbit-react-hooks.git#9f657e05b7d77ea01fc09263fba8576699aa96fc" dependencies: - "@plebbit/plebbit-js" "https://github.com/plebbit/plebbit-js.git#1f08af3c40f264dd51dddf6ef60594d568dfdbad" + "@plebbit/plebbit-js" "https://github.com/plebbit/plebbit-js.git#a8754456fd2cd061a2b050d73beee588483d6714" "@plebbit/plebbit-logger" "https://github.com/plebbit/plebbit-logger.git" assert "2.0.0" ethers "5.6.9"