繁体   English   中英

Internet Explorer 11 是否支持 converse.js?

[英]Is converse.js supported in Internet Explorer 11?

当我尝试查看 converse.js 演示时,出现以下错误

converse.js 和 Internet Explorer 11 错误:

converse.js 和 Internet Explorer 11 错误

更改兼容性设置并不能解决问题。

我还在我的环境中设置了 converse.js 的副本,并且我尝试按照这篇文章中的建议清理尾随逗号

Internet Explorer 错误:“预期标识符”和“预期对象”

但是,我得到了不同的错误

Internet Explorer 11 中的错误 - 没有尾随逗号

Internet Explorer 11 中的错误 - 没有尾随逗号

这是我的代码(通过 Chrome 或 Firefox 查看时有效)。

谁能建议我能做些什么让它在 IE11 中工作? 有可能吗?

<script type="text/javascript">



    converse.plugins.add('myplugin', {
        initialize: function () {
            var _converse = this._converse;
            this._converse.api.waitUntil('connected').then(function () {
                var chat = _converse.api.chats.open('topic1@pcechlt46.pce.local');
                console.log("function SENDING MESSAGE");
                var msg = converse.env.$msg({
                    from: _converse.jid,
                    to:'topic1@pcechlt46.pce.local',
                    type:'chat'
                }).c('body').t('hello world');
               _converse.api.send(msg);
            });
        }
    });


        converse.initialize({
            bosh_service_url: 'http://pcechlt46.pce.local:7070/http-bind/',
            authentication: 'anonymous',
            show_controlbox_by_default: true,
            auto_login: true,
            jid: 'pcechlt46.pce.local',
            allow_muc: false,
            allow_contact_requests: false,
            allow_chat_pending_contact: true,
            allow_non_roster_messaging: true,
            allow_otr: false,
            play_sounds: true,
            sounds_path: '/converse/sounds/',
            notification_icon: '/converse/logo/conversejs.png',
            allow_muc_invitations: false,
            show_desktop_notifications: true,
            debug: true,
            whitelisted_plugins: ['myplugin'],
            // Blacklist plugins which aren't included in the build file,
            // so that other code cannot register their own plugins under
            // those names.
            blacklisted_plugins: [
                "converse-bookmarks",
                "converse-controlbox",
                "converse-headline",
                "converse-otr",
                "converse-register",
                "converse-vcard",
            ]
        });





</script>

只是一个更新。 JCBrand(ConverseJS 开发人员)已确认此版本不适用于 IE11,并将在未来版本中发布修复程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM