mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Revert: Undo isMobile method changes
This commit is contained in:
parent
d4c7ebfafe
commit
d64eefd70e
1 changed files with 2 additions and 8 deletions
|
@ -36,14 +36,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
/**
|
isMobile() {
|
||||||
* @param {number? | undefined} width Width of the device
|
return this.windowWidth <= 767.98;
|
||||||
* @returns {boolean} Whether the device is mobile
|
|
||||||
*/
|
|
||||||
isMobile(width) {
|
|
||||||
return (width && typeof width === "number"
|
|
||||||
? width ?? this.windowWidth
|
|
||||||
: this.windowWidth) <= 767.98;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue