mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-04 13:56:29 +01:00
Fix:iOS offline reading and initialization
This commit is contained in:
1 parent
147f89f870
commit
48342e5bd3
6 files changed
+19
-12
No files matched your search
@@ -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?.()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user