mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update
This commit is contained in:
@@ -367,6 +367,14 @@ function M.get_pivot_offset(pivot_or_node)
|
||||
end
|
||||
|
||||
|
||||
---Check if device is desktop
|
||||
---@return boolean
|
||||
function M.is_desktop()
|
||||
return const.CURRENT_SYSTEM_NAME == const.OS.WINDOWS or const.CURRENT_SYSTEM_NAME == const.OS.MAC or const.CURRENT_SYSTEM_NAME == const.OS.LINUX
|
||||
end
|
||||
|
||||
|
||||
|
||||
---Check if device is native mobile (Android or iOS)
|
||||
---@return boolean Is mobile
|
||||
function M.is_mobile()
|
||||
|
Reference in New Issue
Block a user