tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
offset by junkword length to maintain total length
moth11.net
7 months ago
1a518976
1303dacf
+1
-1
1 changed file
expand all
collapse all
unified
split
src
lib
wscontext.svelte.ts
+1
-1
src/lib/wscontext.svelte.ts
···
77
77
const nb = Math.floor(1.0 * body.length * this.beepcoefficient / this.junkword.length)
78
78
for (let i = 0; i < nb; i++) {
79
79
const start = Math.floor((body.length - this.junkword.length) * Math.random())
80
80
-
body = body.slice(0, start) + this.junkword + body.slice(start + 4)
80
80
+
body = body.slice(0, start) + this.junkword + body.slice(start + this.junkword.length)
81
81
}
82
82
}
83
83
console.log(body)