From 0c844a5c94fbb5ada01aa5887f1cd1c57bb88c9e Mon Sep 17 00:00:00 2001 From: void Date: Tue, 2 Feb 2021 17:44:10 +0000 Subject: [PATCH] =?UTF-8?q?editor:=20borrar=20c=C3=B3digo=20usando=20creat?= =?UTF-8?q?eObjectURL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit está deprecado por Chrome y de todas formas hay cosas que no funcionaban por el content policy. hay algunos lugares en los que se podría arreglar (con MediaStream) pero IMO no tiene sentido --- app/assets/javascripts/01-types.js | 4 ---- 1 file changed, 4 deletions(-) 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 => {