removed prompt

This commit is contained in:
Sriram Hariharan
2019-01-10 22:20:19 -06:00
parent 9673364130
commit c34ec2b259

View File

@@ -220,11 +220,8 @@ $(document).ready(function () {
type: "octet/stream" type: "octet/stream"
})); }));
exportlink.setAttribute('href', url); exportlink.setAttribute('href', url);
var name = prompt('W'); exportlink.setAttribute('download', 'my_courses.json');
if (name) { exportlink.click();
exportlink.setAttribute('download', name + '.json');
exportlink.click();
}
} else { } else {
alert('You have no Saved Courses to export.'); alert('You have no Saved Courses to export.');
} }