mobile frontend WIP, removing extra dependencies

This commit is contained in:
azivner
2018-12-24 10:10:36 +01:00
parent a32645cdeb
commit e0028ab6f1
10 changed files with 134 additions and 70 deletions

View File

@@ -143,6 +143,14 @@ function bindShortcut(keyboardShortcut, handler) {
});
}
function isMobile() {
return window.device === "mobile";
}
function isDesktop() {
return window.device === "desktop";
}
export default {
reloadApp,
parseDate,
@@ -166,5 +174,7 @@ export default {
download,
toObject,
randomString,
bindShortcut
bindShortcut,
isMobile,
isDesktop
};