mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 09:12:08 +08:00
favicon
This commit is contained in:
parent
83243dd936
commit
e0fd38e121
2 changed files with 5 additions and 3 deletions
4
app.js
4
app.js
|
@ -56,8 +56,8 @@ app.use(session({
|
||||||
path: '../trilium-data/sessions'
|
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('/', indexRoute);
|
||||||
app.use('/login', loginRoute);
|
app.use('/login', loginRoute);
|
||||||
|
|
4
index.js
4
index.js
|
@ -1,5 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
const electron = require('electron');
|
const electron = require('electron');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
const app = electron.app;
|
const app = electron.app;
|
||||||
|
|
||||||
|
@ -18,7 +19,8 @@ function onClosed() {
|
||||||
function createMainWindow() {
|
function createMainWindow() {
|
||||||
const win = new electron.BrowserWindow({
|
const win = new electron.BrowserWindow({
|
||||||
width: 1200,
|
width: 1200,
|
||||||
height: 900
|
height: 900,
|
||||||
|
icon: path.join(__dirname, 'public/images/app-icons/png/256x256.png')
|
||||||
});
|
});
|
||||||
|
|
||||||
win.setMenu(null);
|
win.setMenu(null);
|
||||||
|
|
Loading…
Reference in a new issue