mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			329 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			329 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
var night_mode = (function () {
 | 
						|
 | 
						|
var exports = {};
 | 
						|
 | 
						|
exports.enable = function () {
 | 
						|
    $("body").addClass("night-mode");
 | 
						|
};
 | 
						|
 | 
						|
exports.disable = function () {
 | 
						|
    $("body").removeClass("night-mode");
 | 
						|
};
 | 
						|
 | 
						|
return exports;
 | 
						|
}());
 | 
						|
 | 
						|
if (typeof module !== 'undefined') {
 | 
						|
    module.exports = night_mode;
 | 
						|
}
 | 
						|
window.night_mode = night_mode;
 |