Re-enable serving text files as blobs + Remove comments

This commit is contained in:
Zach Rispoli 2017-07-26 14:04:24 -04:00
parent 396fc701c7
commit b194a24564

View file

@ -249,8 +249,7 @@ class PreviewFrame extends React.Component {
let jsFileStrings = content.match(STRING_REGEX);
jsFileStrings = jsFileStrings || [];
jsFileStrings.forEach((jsFileString) => {
console.log(this.props.setBlobUrl);
/* if (jsFileString.match(MEDIA_FILE_REGEX)) {
if (jsFileString.match(MEDIA_FILE_REGEX)) {
const filePath = jsFileString.substr(1, jsFileString.length - 2);
const resolvedFile = resolvePathToFile(filePath, files);
if (resolvedFile) {
@ -263,7 +262,7 @@ class PreviewFrame extends React.Component {
newContent = newContent.replace(filePath, blobURL);
}
}
}*/
}
});
newContent = loopProtect(newContent);
return newContent;