mirror of https://github.com/xwiki-labs/cryptpad
properly handle variable args in Cryptpad.alert
This commit is contained in:
parent
8a87ec180e
commit
0db33d48fc
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue