mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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.
		
			
				
	
	
		
			18 lines
		
	
	
		
			557 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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;
 |