mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 17:12:25 +00:00
fix video defualt height
This commit is contained in:
1 parent
d4a193119d
commit
e31ad384bd
2 files changed
+8
No files matched your search
@@ -61,6 +61,10 @@ class File {
|
||||
video.append(source);
|
||||
source.type = this.content_type;
|
||||
video.controls = !temp;
|
||||
if (this.width) {
|
||||
video.width = this.width;
|
||||
video.height = this.height;
|
||||
}
|
||||
return video;
|
||||
}
|
||||
else if (this.content_type.startsWith('audio/')) {
|
||||
|
||||
@@ -62,6 +62,10 @@ class File{
|
||||
video.append(source);
|
||||
source.type=this.content_type;
|
||||
video.controls=!temp;
|
||||
if(this.width){
|
||||
video.width=this.width;
|
||||
video.height=this.height;
|
||||
}
|
||||
return video;
|
||||
}else if(this.content_type.startsWith('audio/')){
|
||||
const audio=document.createElement("audio");
|
||||
|
||||
Reference in new issue
Block a user