mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	fixing non-root path issues, #404
This commit is contained in:
		
							parent
							
								
									434d8ef48c
								
							
						
					
					
						commit
						bf9ad976b9
					
				
							
								
								
									
										2
									
								
								libraries/ckeditor/ckeditor.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								libraries/ckeditor/ckeditor.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -498,7 +498,7 @@
 | 
			
		||||
				t._started = false;
 | 
			
		||||
				onRenderStop();
 | 
			
		||||
			} else {
 | 
			
		||||
				setImmediate(step);
 | 
			
		||||
				requestIdleCallback(step, { timeout: 10 });
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "trilium",
 | 
			
		||||
  "version": "0.37.3",
 | 
			
		||||
  "version": "0.37.4",
 | 
			
		||||
  "lockfileVersion": 1,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
 | 
			
		||||
@ -127,11 +127,13 @@ async function consumeSyncData() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function connectWebSocket() {
 | 
			
		||||
    const protocol = document.location.protocol === 'https:' ? 'wss' : 'ws';
 | 
			
		||||
    const loc = window.location;
 | 
			
		||||
    const webSocketUri = (loc.protocol === "https:" ? "wss:" : "ws:")
 | 
			
		||||
                       + "//" + loc.host + loc.pathname;
 | 
			
		||||
 | 
			
		||||
    // use wss for secure messaging
 | 
			
		||||
    const ws = new WebSocket(protocol + "://" + location.host);
 | 
			
		||||
    ws.onopen = () => console.debug(utils.now(), "Connected to server with WebSocket");
 | 
			
		||||
    const ws = new WebSocket(webSocketUri);
 | 
			
		||||
    ws.onopen = () => console.debug(utils.now(), `Connected to server ${webSocketUri} with WebSocket`);
 | 
			
		||||
    ws.onmessage = handleMessage;
 | 
			
		||||
    // we're not handling ws.onclose here because reconnection is done in sendPing()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user