mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			520 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			520 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
var localstorage = (function () {
 | 
						|
 | 
						|
var exports = {};
 | 
						|
 | 
						|
var warned_of_localstorage = false;
 | 
						|
 | 
						|
exports.supported = function supports_localstorage() {
 | 
						|
    try {
 | 
						|
        return window.hasOwnProperty('localStorage') && window.localStorage !== null;
 | 
						|
    } catch (e) {
 | 
						|
        if (!warned_of_localstorage) {
 | 
						|
            blueslip.error("Client browser does not support local storage, will lose socket message on reload");
 | 
						|
            warned_of_localstorage = true;
 | 
						|
        }
 | 
						|
        return false;
 | 
						|
    }
 | 
						|
};
 | 
						|
 | 
						|
return exports;
 | 
						|
 | 
						|
}());
 |