properly handle variable args in Cryptpad.alert

pull/1/head
ansuz 7 years ago
parent 8a87ec180e
commit 0db33d48fc

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

Loading…
Cancel
Save