Re-enable serving text files as blobs + Remove comments
This commit is contained in:
parent
396fc701c7
commit
b194a24564
1 changed files with 2 additions and 3 deletions
|
@ -249,8 +249,7 @@ class PreviewFrame extends React.Component {
|
||||||
let jsFileStrings = content.match(STRING_REGEX);
|
let jsFileStrings = content.match(STRING_REGEX);
|
||||||
jsFileStrings = jsFileStrings || [];
|
jsFileStrings = jsFileStrings || [];
|
||||||
jsFileStrings.forEach((jsFileString) => {
|
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 filePath = jsFileString.substr(1, jsFileString.length - 2);
|
||||||
const resolvedFile = resolvePathToFile(filePath, files);
|
const resolvedFile = resolvePathToFile(filePath, files);
|
||||||
if (resolvedFile) {
|
if (resolvedFile) {
|
||||||
|
@ -263,7 +262,7 @@ class PreviewFrame extends React.Component {
|
||||||
newContent = newContent.replace(filePath, blobURL);
|
newContent = newContent.replace(filePath, blobURL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
});
|
});
|
||||||
newContent = loopProtect(newContent);
|
newContent = loopProtect(newContent);
|
||||||
return newContent;
|
return newContent;
|
||||||
|
|
Loading…
Reference in a new issue