Merge pull request #1394 from processing/download-zip-503

Fixes #850: 503 error when downloading sketch
This commit is contained in:
Cassie Tarakajian 2020-04-15 17:40:14 -04:00 committed by GitHub
commit 46d4f2c427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ export function projectForUserExists(username, projectId, callback) {
} }
function bundleExternalLibs(project, zip, callback) { function bundleExternalLibs(project, zip, callback) {
const indexHtml = project.files.find(file => file.name === 'index.html'); const indexHtml = project.files.find(file => file.name.match(/\.html$/));
let numScriptsResolved = 0; let numScriptsResolved = 0;
let numScriptTags = 0; let numScriptTags = 0;