mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-29 11:10:38 +02:00
error-only for http-server, better parameter parsing for sketch markup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
let curve;
|
||||
|
||||
setup() {
|
||||
let type = getParameter(`type`, `quadratic`);
|
||||
let type = this.parameters.type ?? `quadratic`;
|
||||
if (type === `quadratic`) {
|
||||
curve = Bezier.defaultQuadratic(this);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user