Load messages.js only once, in cryptpad-common

This commit is contained in:
yflory
2017-02-21 14:16:23 +01:00
parent b55ded454b
commit 47b8fefd9e
11 changed files with 35 additions and 32 deletions

View File

@@ -1,10 +1,11 @@
define([
'/customize/messages.js',
'/customize/application_config.js',
'/bower_components/jquery/dist/jquery.min.js'
], function (Messages, Config) {
], function (Config) {
var $ = window.jQuery;
var Messages = {};
var Bar = {
constants: {},
};
@@ -503,6 +504,7 @@ define([
config = config || {};
var readOnly = (typeof config.readOnly !== "undefined") ? (config.readOnly ? 1 : 0) : -1;
var Cryptpad = config.common;
Messages = Cryptpad.Messages;
config.displayed = config.displayed || [];
var toolbar = createRealtimeToolbar($container, config.title);