tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
hopefully this helps with bug
moth11.net
4 months ago
28fe7083
8fd01a01
+6
1 changed file
expand all
collapse all
unified
split
src
lib
wscontext.svelte.ts
+6
src/lib/wscontext.svelte.ts
···
541
}
542
543
const insertSIntoAStringAtIdx = (s: string, a: string, idx: number) => {
0
0
0
544
if (idx > a.length) {
545
a = a.padEnd(idx)
546
}
···
548
}
549
550
const deleteFromAStringBetweenIdxs = (a: string, idx1: number, idx2: number) => {
0
0
0
551
if (idx2 > a.length) {
552
a = a.padEnd(idx2)
553
}
···
541
}
542
543
const insertSIntoAStringAtIdx = (s: string, a: string, idx: number) => {
544
+
if (a === undefined) {
545
+
a = ""
546
+
}
547
if (idx > a.length) {
548
a = a.padEnd(idx)
549
}
···
551
}
552
553
const deleteFromAStringBetweenIdxs = (a: string, idx1: number, idx2: number) => {
554
+
if (a === undefined) {
555
+
a = ""
556
+
}
557
if (idx2 > a.length) {
558
a = a.padEnd(idx2)
559
}