parent
244145696c
commit
1944b2824c
|
@ -32,11 +32,9 @@
|
|||
|
||||
<label for="join-session-colour">Colour:</label>
|
||||
<input
|
||||
type="text"
|
||||
type="color"
|
||||
id="join-session-colour"
|
||||
placeholder="7ed0ff"
|
||||
value="7ed0ff"
|
||||
pattern="[a-fA-F\d]{6}"
|
||||
value="#7ed0ff"
|
||||
required
|
||||
/>
|
||||
|
||||
|
|
|
@ -79,6 +79,6 @@ export const setupJoinSessionForm = () => {
|
|||
|
||||
saveNickname(nickname);
|
||||
saveColour(colour);
|
||||
joinSession(nickname.value, sessionId.value, colour.value);
|
||||
joinSession(nickname.value, sessionId.value, colour.value.replace(/^#/, ""));
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue