Commit 0f95059c authored by JC Brand's avatar JC Brand

Add a debugging helper plugin

parent aa9aad91
...@@ -17,6 +17,14 @@ ...@@ -17,6 +17,14 @@
<body class="reset"> <body class="reset">
<div id="conversejs-bg"></div> <div id="conversejs-bg"></div>
<script> <script>
converse.plugins.add('converse-debug', {
initialize () {
const { _converse } = this;
window._converse = _converse;
}
});
converse.initialize({ converse.initialize({
auto_away: 300, auto_away: 300,
i18n: 'af', i18n: 'af',
...@@ -27,6 +35,7 @@ ...@@ -27,6 +35,7 @@
// ], // ],
websocket_url: 'wss://conversejs.org/xmpp-websocket', websocket_url: 'wss://conversejs.org/xmpp-websocket',
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
whitelisted_plugins: ['converse-debug'],
view_mode: 'fullscreen', view_mode: 'fullscreen',
notify_all_room_messages: [ notify_all_room_messages: [
'discuss@conference.conversejs.org' 'discuss@conference.conversejs.org'
......
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