diff --git a/front/src/components/Queue.vue b/front/src/components/Queue.vue index 2d2428137..91c6c9968 100644 --- a/front/src/components/Queue.vue +++ b/front/src/components/Queue.vue @@ -168,7 +168,16 @@ enum CoverType { MILK_DROP } +let isWebGLSupported = false +try { + const canvas = document.createElement('canvas') + isWebGLSupported = !!canvas.getContext('webgl2') +} catch (error) {} + const coverType = useStorage('queue:cover-type', CoverType.COVER_ART) +if (!isWebGLSupported) { + coverType.value = CoverType.COVER_ART +}