1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Fixed bug in message-box (user-consent) introduced in older zenity platforms

This commit is contained in:
Bryan Roe
2020-08-06 01:33:30 -07:00
parent 09260ee471
commit 6740cbf55d
2 changed files with 2 additions and 2 deletions

View File

@@ -367,7 +367,7 @@ function linux_messageBox()
}
if (this.zenity)
{
if (!this.zenity.extra && layout.length > 1)
if (!this.zenity.extra && Array.isArray(layout) && layout.length > 1)
{
ret._rej('This system does not support custom button layouts');
return (ret);