From 5e761942625c783e51be9e99648287585860a951 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 3 Oct 2016 19:28:36 +0200 Subject: [PATCH] use new config api --- www/pad/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/pad/main.js b/www/pad/main.js index 18274079f..6eee27d50 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -1,6 +1,5 @@ require.config({ paths: { 'json.sortify': '/bower_components/json.sortify/dist/JSON.sortify' } }); define([ - '/api/config?cb=' + Math.random().toString(16).substring(2), '/customize/messages.js?app=pad', '/bower_components/chainpad-crypto/crypto.js', '/bower_components/chainpad-netflux/chainpad-netflux.js', @@ -18,7 +17,7 @@ define([ '/bower_components/diff-dom/diffDOM.js', '/bower_components/jquery/dist/jquery.min.js', '/customize/pad.js' -], function (Config, Messages, Crypto, realtimeInput, Hyperjson, +], function (Messages, Crypto, realtimeInput, Hyperjson, Toolbar, Cursor, JsonOT, TypingTest, JSONSortify, TextPatcher, Cryptpad, Visible, Notify) { var $ = window.jQuery; @@ -323,7 +322,7 @@ define([ initialState: stringifyDOM(inner) || '{}', // the websocket URL - websocketURL: Config.websocketURL, + websocketURL: Cryptpad.getWebsocketURL(), // the channel we will communicate over channel: secret.channel,