app catch all
This commit is contained in:
		
							parent
							
								
									fcfaff1ef0
								
							
						
					
					
						commit
						d87175b73a
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		
							
								
								
									
										10
									
								
								app.ts
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								app.ts
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -51,7 +51,7 @@ if (!setting.cli) {
 | 
			
		|||
    });
 | 
			
		||||
    try{
 | 
			
		||||
      const server = await create_server();
 | 
			
		||||
      server.start_server();
 | 
			
		||||
      const app = server.start_server();
 | 
			
		||||
      registerChannel(server.userController);
 | 
			
		||||
      await wnd.loadURL(`http://localhost:${setting.port}`);
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -102,8 +102,12 @@ if (!setting.cli) {
 | 
			
		|||
  });
 | 
			
		||||
} else {
 | 
			
		||||
  (async () => {
 | 
			
		||||
    const server = await create_server();
 | 
			
		||||
    server.start_server();
 | 
			
		||||
    try {
 | 
			
		||||
      const server = await create_server();
 | 
			
		||||
      server.start_server();
 | 
			
		||||
    } catch (error) {
 | 
			
		||||
      console.log(error);
 | 
			
		||||
    }
 | 
			
		||||
  })();
 | 
			
		||||
}
 | 
			
		||||
const loading_html = `<!DOCTYPE html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue