properly handle variable args in Cryptpad.alert

This commit is contained in:
ansuz 2017-09-13 14:52:58 +02:00
parent 8a87ec180e
commit 0db33d48fc
1 changed files with 2 additions and 1 deletions

View File

@ -215,9 +215,10 @@ define([
force = opt.force || false; force = opt.force || false;
} else if (typeof(opt) === 'boolean') { } else if (typeof(opt) === 'boolean') {
force = opt; force = opt;
}
if (typeof(opt) !== 'object') {
opt = {}; opt = {};
} }
cb = cb || function () {}; cb = cb || function () {};
var message; var message;