converse.js预绑定身份验证出现致命错误

时间:2019-03-19 11:21:03

标签: converse.js

我在converse.js中使用预绑定身份验证。初始化匡威时,收到错误消息:

"FATAL: TypeError: Cannot read property 'insertAdjacentElement' of null"

该错误可以追溯到converse-register.js:57,其中this.el.querySelector('。buttons')设置为null,这可能是因为querySelector函数找不到任何元素。使用预绑定身份验证而不是登录身份验证时,会发生此错误。有什么想法可能导致这种情况?

如果有所作为,这就是我的converse.initialize脚本:

converse.initialize({
    locales_url: 'apps/view/javascript/converse/locale/ro/LC_MESSAGES/converse.json',
    bosh_service_url: 'http://localhost:5443/bosh',
    debug: true,
    prebind_url: 'http://localhost/index.php? route=common/login/prebind',
    authentication: 'prebind',
    allow_logout: false,
    keepalive: true,
    message_carbons: true,
    play_sounds: true,
    roster_groups: true,
    show_controlbox_by_default: true,
    xhr_user_search: false
});

0 个答案:

没有答案