mirror of
https://github.com/mue/mue.git
synced 2026-07-17 14:04:09 +02:00
fix: build error due to top level await
This commit is contained in:
@@ -116,7 +116,7 @@ export default class Background extends PureComponent {
|
||||
break;
|
||||
}
|
||||
|
||||
const accept = 'application/json, ' + (supportsAVIF ? 'image/avif' : 'image/webp');
|
||||
const accept = 'application/json, ' + (await supportsAVIF() ? 'image/avif' : 'image/webp');
|
||||
try {
|
||||
data = await (await fetch(requestURL, { headers: { accept } })).json();
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user