Skip to content

Commit e3394cc

Browse files
committed
messagegui: Comment expected values of variables.
1 parent 6c801bd commit e3394cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/messagegui/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ function showMessage(msgid, persist) {
392392
}
393393
lines = g.setFont(bodyFont).wrapString(body, w);
394394
}
395+
// By this point, `title` must be a string and `lines` must be an array of strings.
396+
// Either or both can be empty, but neither can be `undefined` (#3969).
395397
let negHandler,posHandler,rowLeftDraw,rowRightDraw;
396398
if (msg.negative) {
397399
negHandler = ()=>{

0 commit comments

Comments
 (0)