mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-22 17:32:14 +00:00
scss changes in SetFolderIcon, add translation to sk/cn
This commit is contained in:
16
resources/js/helpers.js
vendored
16
resources/js/helpers.js
vendored
@@ -352,6 +352,22 @@ const Helpers = {
|
||||
body.classList.add('windows')
|
||||
}
|
||||
}
|
||||
Vue.prototype.$isIos = function() {
|
||||
|
||||
const toMatch = [
|
||||
/iPhone/i,
|
||||
/iPad/i,
|
||||
/iPod/i,
|
||||
/iOS/i,
|
||||
/macOS/i,
|
||||
/Macintosh/i
|
||||
]
|
||||
|
||||
// Check if device is iOS
|
||||
return toMatch.some(toMatchItem => {
|
||||
return navigator.userAgent.match(toMatchItem)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user