Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsuttlemyre authored May 29, 2024
1 parent ce16447 commit 617fdc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,13 @@

function initialize() {
// Create own peer object with connection to shared PeerJS server
peerjs = new Peer('6f06212e-614c-4ce0-86b2-'+location.hash, {
let sessionID=null
if(location.hash.match(/^#!/i)){
throw new Error('location hash is a map and needs an api')
}else{
sessionID=location.hash.replace(/^#/, '')
}
peerjs = new Peer('6f06212e-614c-4ce0-86b2-'+sessionID, {
debug: 2
});

Expand Down

0 comments on commit 617fdc2

Please sign in to comment.