mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 08:38:10 +00:00
visual/TextInput: use nullish coalescing operator for stroke styling
fallbacks
This commit is contained in:
parent
4e08d1e26f
commit
e2a9d08de8
@ -831,9 +831,9 @@ function DefaultBoxGenerator(styles)
|
||||
if (style.stroke)
|
||||
{
|
||||
box.lineStyle(
|
||||
style.stroke.width || 1,
|
||||
style.stroke.color || 0,
|
||||
style.stroke.alpha || 1
|
||||
style.stroke.width ?? 1,
|
||||
style.stroke.color ?? 0,
|
||||
style.stroke.alpha ?? 1
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user