Skip to content

Commit

Permalink
feat(webreader): detect browser support for AVIF
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Oct 4, 2023
1 parent e1a582c commit b5236c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions komga-webui/src/views/BookReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ export default Vue.extend({
checkImageSupport(ImageFeature.JPEG_XL, (isSupported) => {
if (isSupported) this.supportedMediaTypes.push('image/jxl')
})
checkImageSupport(ImageFeature.AVIF, (isSupported) => {
if (isSupported) this.supportedMediaTypes.push('image/avif')
})
this.shortcuts = this.$_.keyBy([...shortcutsSettings, ...shortcutsSettingsPaged, ...shortcutsSettingsContinuous, ...shortcutsMenus, ...shortcutsAll], x => x.key)
window.addEventListener('keydown', this.keyPressed)
if (screenfull.isEnabled) screenfull.on('change', this.fullscreenChanged)
Expand Down

0 comments on commit b5236c6

Please sign in to comment.