diff --git a/index.html b/index.html index 4df9fc1..247674d 100644 --- a/index.html +++ b/index.html @@ -1171,7 +1171,7 @@ function initialize() { // Create own peer object with connection to shared PeerJS server - peerjs = new Peer('6f06212e-614c-4ce0-86b2-4205c042fe9f', { + peerjs = new Peer('6f06212e-614c-4ce0-86b2-'+location.hash, { debug: 2 }); @@ -1292,9 +1292,12 @@ }; //initialize - //if(location.pathname=='/kqDraft/'){ + if(location.pathname=='/kqDraft/'){ + if(!location.hash){ + location.hash=prompt('give this session a name') + } initialize(); - //} + } })();