The last parameter is optional

This commit is contained in:
Alex Tselegidis 2021-12-10 09:06:53 +01:00
parent 17b7ff6631
commit 037c3037e6
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
* @param {String} message The message of the dialog.
* @param {Array} buttons Contains the dialog buttons along with their functions.
*/
exports.displayMessageBox = function (title, message, buttons) {
exports.displayMessageBox = function (title, message, buttons = null) {
if (!title) {
title = '- No Title Provided -';
}