diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 2e7b6e640..57f5bc4b7 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -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;