Commit 6358fd7c authored by JC Brand's avatar JC Brand

Use `finally`

parent 4e6ac905
...@@ -63781,7 +63781,7 @@ _converse.initialize = function (settings, callback) { ...@@ -63781,7 +63781,7 @@ _converse.initialize = function (settings, callback) {
} else { } else {
_i18n__WEBPACK_IMPORTED_MODULE_6__["default"].fetchTranslations(_converse.locale, _converse.locales, _converse_headless_utils_core__WEBPACK_IMPORTED_MODULE_11__["default"].interpolate(_converse.locales_url, { _i18n__WEBPACK_IMPORTED_MODULE_6__["default"].fetchTranslations(_converse.locale, _converse.locales, _converse_headless_utils_core__WEBPACK_IMPORTED_MODULE_11__["default"].interpolate(_converse.locales_url, {
'locale': _converse.locale 'locale': _converse.locale
})).catch(e => _converse.log(e.message, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.FATAL)).then(finishInitialization).catch(_lodash_noconflict__WEBPACK_IMPORTED_MODULE_4___default.a.partial(_converse.log, _lodash_noconflict__WEBPACK_IMPORTED_MODULE_4___default.a, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.FATAL)); })).catch(e => _converse.log(e.message, strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.FATAL)).finally(finishInitialization);
} }
return init_promise; return init_promise;
...@@ -1232,8 +1232,7 @@ _converse.initialize = function (settings, callback) { ...@@ -1232,8 +1232,7 @@ _converse.initialize = function (settings, callback) {
_converse.locales, _converse.locales,
u.interpolate(_converse.locales_url, {'locale': _converse.locale})) u.interpolate(_converse.locales_url, {'locale': _converse.locale}))
.catch(e => _converse.log(e.message, Strophe.LogLevel.FATAL)) .catch(e => _converse.log(e.message, Strophe.LogLevel.FATAL))
.then(finishInitialization) .finally(finishInitialization);
.catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
} }
return init_promise; return init_promise;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment