mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
attachment revision upload
This commit is contained in:
@@ -182,15 +182,15 @@ function randomString(len) {
|
||||
}
|
||||
|
||||
function isMobile() {
|
||||
return window.device === "mobile"
|
||||
// window.device is not available in setup
|
||||
|| (!window.device && /Mobi/.test(navigator.userAgent));
|
||||
return window.glob?.device === "mobile"
|
||||
// window.glob.device is not available in setup
|
||||
|| (!window.glob?.device && /Mobi/.test(navigator.userAgent));
|
||||
}
|
||||
|
||||
function isDesktop() {
|
||||
return window.device === "desktop"
|
||||
// window.device is not available in setup
|
||||
|| (!window.device && !/Mobi/.test(navigator.userAgent));
|
||||
return window.glob?.device === "desktop"
|
||||
// window.glob.device is not available in setup
|
||||
|| (!window.glob?.device && !/Mobi/.test(navigator.userAgent));
|
||||
}
|
||||
|
||||
// cookie code below works for simple use cases only - ASCII only
|
||||
|
||||
Reference in New Issue
Block a user