mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	favicon
This commit is contained in:
		
							
								
								
									
										4
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								app.js
									
									
									
									
									
								
							@@ -56,8 +56,8 @@ app.use(session({
 | 
			
		||||
        path: '../trilium-data/sessions'
 | 
			
		||||
    })
 | 
			
		||||
}));
 | 
			
		||||
// uncomment after placing your favicon in /public
 | 
			
		||||
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
 | 
			
		||||
 | 
			
		||||
app.use(favicon(__dirname + '/public/images/app-icons/favicon.ico'));
 | 
			
		||||
 | 
			
		||||
app.use('/', indexRoute);
 | 
			
		||||
app.use('/login', loginRoute);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							@@ -1,5 +1,6 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
const electron = require('electron');
 | 
			
		||||
const path = require('path');
 | 
			
		||||
 | 
			
		||||
const app = electron.app;
 | 
			
		||||
 | 
			
		||||
@@ -18,7 +19,8 @@ function onClosed() {
 | 
			
		||||
function createMainWindow() {
 | 
			
		||||
    const win = new electron.BrowserWindow({
 | 
			
		||||
        width: 1200,
 | 
			
		||||
        height: 900
 | 
			
		||||
        height: 900,
 | 
			
		||||
        icon: path.join(__dirname, 'public/images/app-icons/png/256x256.png')
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    win.setMenu(null);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user