mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-06-28 07:50:11 +02:00
Fix:iOS offline reading and initialization
This commit is contained in:
parent
147f89f870
commit
48342e5bd3
6 changed files with 19 additions and 12 deletions
|
@ -188,12 +188,14 @@ const decode = (text) => Buffer.from(decodeURIComponent(text), 'base64').toStrin
|
|||
Vue.prototype.$decode = decode
|
||||
|
||||
Vue.prototype.$setOrientationLock = (orientationLockSetting) => {
|
||||
if (!window.screen?.orientation) return
|
||||
|
||||
if (orientationLockSetting == 'PORTRAIT') {
|
||||
window.screen.orientation.lock('portrait')
|
||||
window.screen.orientation.lock?.('portrait')
|
||||
} else if (orientationLockSetting == 'LANDSCAPE') {
|
||||
window.screen.orientation.lock('landscape')
|
||||
window.screen.orientation.lock?.('landscape')
|
||||
} else {
|
||||
window.screen.orientation.unlock()
|
||||
window.screen.orientation.unlock?.()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue