Skip to content

Commit

Permalink
enable debug, devtools, change peerjs host
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 19, 2023
1 parent f3f402d commit bcc4148
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2021"
tauri-build = { version = "1.4", features = [] }

[dependencies]
tauri = { version = "1.4", features = ["shell-open"] }
tauri = { version = "1.4", features = ["shell-open", "devtools"] }
enigo = { version = "0.1.3" }


Expand Down
2 changes: 1 addition & 1 deletion desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function App() {
const [id, ] = useLocalStorage('id', uuidv4())
console.log('localstorage id => ', id)
const [loading, setLoading] = useState(true);
const [peer, ] = useState(new Peer(id, { pingInterval: 2000 , host: '1.peerjs.com'}));
const [peer, ] = useState(new Peer(id, { pingInterval: 2000 , host: '0.peerjs.com', debug: 3}));
const [conn, setConn] = useState<DataConnection | null>(null);
const qrDiv = useRef<HTMLDivElement>(null);

Expand Down
2 changes: 1 addition & 1 deletion web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function App() {
return new Promise<void>((resolve, reject) => {
console.log("connecting to ", addressRef.current);
peerRef.current = new Peer({
host: "1.peerjs.com",
host: "0.peerjs.com",
debug: 3,
pingInterval: 2000,
});
Expand Down

0 comments on commit bcc4148

Please sign in to comment.