From 9e05ed8d765ee46dec273e15e5806ed193a645ff Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 24 Jul 2013 23:58:04 +0200 Subject: [PATCH] Moved call to initialize to HTML markup - This is more user-friendly and we want it to be outside of the files bundled and minimized by require.js --- index.html | 14 ++++++++++++++ main.js | 15 +-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index bab05f275..8458b06c3 100644 --- a/index.html +++ b/index.html @@ -164,4 +164,18 @@ + diff --git a/main.js b/main.js index ac0f012cb..e6ab65b06 100644 --- a/main.js +++ b/main.js @@ -1,14 +1 @@ -require(["jquery", "converse"], function($, converse) { - // Most of these initialization values are the defaults but they're - // included here as a reference. - converse.initialize({ - auto_list_rooms: false, - auto_subscribe: false, - bosh_service_url: 'https://bind.opkode.im', // Please use this connection manager only for testing purposes - hide_muc_server: false, - i18n: locales.en, // Refer to ./locale/locales.js to see which locales are supported - prebind: false, - show_controlbox_by_default: true, - xhr_user_search: false - }); -}); +require(["jquery", "converse"], function($, converse) {});