Fix:iOS offline reading and initialization

This commit is contained in:
advplyr 2023-06-20 16:29:56 -05:00
parent 147f89f870
commit 48342e5bd3
6 changed files with 19 additions and 12 deletions

View file

@ -370,7 +370,7 @@ export default {
this.saveSettings()
},
getCurrentOrientation() {
const orientation = window.screen ? window.screen.orientation || {} : {}
const orientation = window.screen?.orientation || {}
const type = orientation.type || ''
if (type.includes('landscape')) return 'LANDSCAPE'