Remove #BBB code for the deprecated prebind option

replaced with the `authentication` option
This commit is contained in:
JC Brand 2017-02-18 09:35:16 +00:00
parent fe6cb93a63
commit 33cc2c3cf5

View File

@ -20,8 +20,7 @@
"backbone.overview",
], factory);
}(this, function (sizzle, $, _, polyfill, locales, utils, moment, Strophe, pluggable) {
/*
* Cannot use this due to Safari bug.
/* Cannot use this due to Safari bug.
* See https://github.com/jcbrand/converse.js/issues/196
*/
// "use strict";
@ -262,9 +261,6 @@
// Allow only whitelisted configuration attributes to be overwritten
_.assignIn(this, _.pick(settings, _.keys(this.default_settings)));
// BBB
if (this.prebind === true) { this.authentication = _converse.PREBIND; }
if (this.authentication === _converse.ANONYMOUS) {
if (this.auto_login && !this.jid) {
throw new Error("Config Error: you need to provide the server's " +