chore: removed unused imports

This commit is contained in:
Jannat Patel
2024-06-21 18:52:12 +05:30
parent ed739b25e2
commit 8d1c03d4c1
2 changed files with 1 additions and 4 deletions

View File

@@ -13,14 +13,12 @@ export class Upload {
}
render() {
console.log('render')
this.wrapper = document.createElement('div')
this.renderUpload(this.data)
return this.wrapper
}
renderUpload(file) {
console.log(file.file_type)
if (this.isVideo(file.file_type)) {
const app = createApp(VideoBlock, {
file: file.file_url,
@@ -39,7 +37,6 @@ export class Upload {
)}#toolbar=0" width='100%' height='700px' class="mb-4"></iframe>`
return
} else {
console.log('in else')
this.wrapper.innerHTML = `<img class="mb-4" src=${encodeURI(
file.file_url
)} width='100%'>`