mirror of https://github.com/bra1n/townsquare.git
simplified the regex on joining a session to only look for anything starting with http(s):// and parseing out the code.
This commit is contained in:
parent
fafbb3c23f
commit
724a218b6f
|
@ -258,11 +258,7 @@ export default {
|
||||||
let sessionId = prompt(
|
let sessionId = prompt(
|
||||||
"Enter the channel number / name of the session you want to join"
|
"Enter the channel number / name of the session you want to join"
|
||||||
);
|
);
|
||||||
if (
|
if (sessionId.match(/^https?:\/\//i)) {
|
||||||
sessionId.match(
|
|
||||||
/^https?:\/\/([^.]+\.github\.io|localhost|clocktower\.online|eddbra1nprivatetownsquare\.xyz)/i
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
sessionId = sessionId.split("#")[1];
|
sessionId = sessionId.split("#")[1];
|
||||||
}
|
}
|
||||||
if (sessionId) {
|
if (sessionId) {
|
||||||
|
|
Loading…
Reference in New Issue