chore: fix some typos in comments (#6343)

Signed-off-by: alongdate <alongyear@outlook.com>
This commit is contained in:
alongdate 2024-04-20 01:12:58 +08:00 committed by GitHub
parent 2e0654bd34
commit 2d01f6027f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -167,7 +167,7 @@ const getUrlVars = () => new URL(window.location.href).searchParams;
const sendClientReady = (isReconnect) => {
let padId = document.location.pathname.substring(document.location.pathname.lastIndexOf('/') + 1);
// unescape neccesary due to Safari and Opera interpretation of spaces
// unescape necessary due to Safari and Opera interpretation of spaces
padId = decodeURIComponent(padId);
if (!isReconnect) {
@ -213,7 +213,7 @@ const sendClientReady = (isReconnect) => {
const handshake = async () => {
let receivedClientVars = false;
let padId = document.location.pathname.substring(document.location.pathname.lastIndexOf('/') + 1);
// unescape neccesary due to Safari and Opera interpretation of spaces
// unescape necessary due to Safari and Opera interpretation of spaces
padId = decodeURIComponent(padId);
// padId is used here for sharding / scaling. We prefix the padId with padId: so it's clear