openshift-homeroom / workshop-dashboard

Adds content hosting to workshop terminals.
Apache License 2.0
47 stars 37 forks source link

Download script not saving empty files. #37

Closed GrahamDumpleton closed 5 years ago

GrahamDumpleton commented 5 years ago

Download script uses:

if (module_body) {
    ...
}

Problem is that this means if file is empty it isn't saved. Need to check for undefined or null. An empty string is okay.