mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
some tweaks mainly for electron support
This commit is contained in:
@@ -44,6 +44,10 @@ function browserId(req) {
|
||||
return req.get('x-browser-id');
|
||||
}
|
||||
|
||||
function isElectron() {
|
||||
return !!process.versions['electron'];
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
randomSecureToken,
|
||||
randomString,
|
||||
@@ -52,5 +56,6 @@ module.exports = {
|
||||
toBase64,
|
||||
fromBase64,
|
||||
hmac,
|
||||
browserId
|
||||
browserId,
|
||||
isElectron
|
||||
};
|
||||
Reference in New Issue
Block a user