mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
Add supportsFlex() function and error handling for unsupported flex layout
This commit is contained in:
1 parent
fb6179e2be
commit
d982f4d3b1
4 files changed
+18
-3
No files matched your search
@@ -107,3 +107,9 @@ export function setStyleText(id, style) {
|
||||
document.head.appendChild($style);
|
||||
}
|
||||
}
|
||||
|
||||
export function supportsFlex() {
|
||||
const div = document.createElement('div');
|
||||
div.style.display = 'flex';
|
||||
return div.style.display === 'flex';
|
||||
}
|
||||
Reference in new issue
Block a user