1
0
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:
Sotiri Bakagiannis 2021-06-08 19:01:14 +01:00
parent 4e08d1e26f
commit e2a9d08de8

View File

@ -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
);
}