mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Normalize strings to double quotes.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							06691e1e45
						
					
				
				
					commit
					f3726db89a
				
			@@ -3,8 +3,8 @@ const pending_requests = [];
 | 
			
		||||
function add_pending_request(jqXHR) {
 | 
			
		||||
    pending_requests.push(jqXHR);
 | 
			
		||||
    if (pending_requests.length > 50) {
 | 
			
		||||
        blueslip.warn('The length of pending_requests is over 50. Most likely ' +
 | 
			
		||||
                      'they are not being correctly removed.');
 | 
			
		||||
        blueslip.warn("The length of pending_requests is over 50. Most likely " +
 | 
			
		||||
                      "they are not being correctly removed.");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -43,14 +43,14 @@ function call(args, idempotent) {
 | 
			
		||||
 | 
			
		||||
        if (xhr.status === 403) {
 | 
			
		||||
            try {
 | 
			
		||||
                if (JSON.parse(xhr.responseText).code === 'CSRF_FAILED') {
 | 
			
		||||
                if (JSON.parse(xhr.responseText).code === "CSRF_FAILED") {
 | 
			
		||||
                    reload.initiate({immediate: true,
 | 
			
		||||
                                     save_pointer: true,
 | 
			
		||||
                                     save_narrow: true,
 | 
			
		||||
                                     save_compose: true});
 | 
			
		||||
                }
 | 
			
		||||
            } catch (ex) {
 | 
			
		||||
                blueslip.error('Unexpected 403 response from server',
 | 
			
		||||
                blueslip.error("Unexpected 403 response from server",
 | 
			
		||||
                               {xhr: xhr.responseText,
 | 
			
		||||
                                args: args},
 | 
			
		||||
                               ex.stack);
 | 
			
		||||
@@ -120,7 +120,7 @@ exports.patch = function (options) {
 | 
			
		||||
        // method this way
 | 
			
		||||
        options.data.append("method", "PATCH");
 | 
			
		||||
    } else {
 | 
			
		||||
        options.data = { ...options.data, method: 'PATCH' };
 | 
			
		||||
        options.data = { ...options.data, method: "PATCH" };
 | 
			
		||||
    }
 | 
			
		||||
    return exports.post(options, options.idempotent);
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user