mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
fix pdf export + add download_as_pdf template string and action (#110)
* fix pdf export add download_as_pdf template string and action * after pdf export click - close dropdown - open in new tab * proper fix function
This commit is contained in:
@@ -114,7 +114,12 @@ router.get('/pdf', function(req, res, next) {
|
||||
res.status(201).json({
|
||||
url: url
|
||||
});
|
||||
fs.unlink(local_path);
|
||||
fs.unlink(local_path, function(){
|
||||
if (err) console.log('unlink', err);
|
||||
else {
|
||||
console.log('unlink', local_path);
|
||||
}
|
||||
});
|
||||
});
|
||||
}, (err) => {
|
||||
res.status(500).json({
|
||||
|
||||
Reference in New Issue
Block a user