Files
zulip/static/js/zulip.js
Armaan Ahluwalia 6d255efe4c app: Prepare JS files for consumption by webpack.
This commit prepares the frontend code to be consumed by webpack.

It is a hack: In theory, modules should be declaring and importing the
modules they depend on and the globals they expose directly.

However, that requires significant per-module work, which we don't
really want to block moving our toolchain to webpack on.

So we expose the modules by setting window.varName = varName; as
needed in the js files.
2018-07-05 10:53:36 +02:00

18 lines
557 B
JavaScript

// This file is being eliminated as part of the general purge of
// global variables from Zulip (everything is being moved into
// modules). Please don't add things here.
var home_msg_list = new message_list.MessageList({
table_name: 'zhome',
filter: new Filter([{operator: "in", operand: "home"}]),
muting_enabled: true,
});
var current_msg_list = home_msg_list;
if (typeof module !== 'undefined') {
module.exports.current_msg_list = current_msg_list;
}
window.home_msg_list = home_msg_list;
window.current_msg_list = current_msg_list;