diff --git a/app/assets/javascripts/01-types.js b/app/assets/javascripts/01-types.js index 909b9e3..2caea19 100644 --- a/app/assets/javascripts/01-types.js +++ b/app/assets/javascripts/01-types.js @@ -259,7 +259,6 @@ const typesWithProperties = { const file = imgFileEl.files[0] - imgEl.src = URL.createObjectURL(file) imgEl.dataset.editorLoading = true uploadFile(file) .then(url => { @@ -321,7 +320,6 @@ const typesWithProperties = { const audioEl = figureEl.querySelector('audio') - audioEl.src = URL.createObjectURL(file) audioEl.dataset.editorLoading = true uploadFile(file) .then(url => { @@ -361,7 +359,6 @@ const typesWithProperties = { const file = videoFileEl.files[0] videoEl.poster = "" - videoEl.src = URL.createObjectURL(file) videoEl.dataset.editorLoading = true uploadFile(file) .then(url => { @@ -401,7 +398,6 @@ const typesWithProperties = { const file = pdfFileEl.files[0] const pdfEl = figureEl.children[0] - pdfEl.src = URL.createObjectURL(file) pdfEl.dataset.editorLoading = true uploadFile(file) .then(url => {