code cleaning
This commit is contained in:
parent
eaf61a07df
commit
51b6f915ff
@ -547,11 +547,11 @@ class OutputWaiter {
|
|||||||
}
|
}
|
||||||
const fileName = window.prompt("Please enter a filename: ", "download.pdf");
|
const fileName = window.prompt("Please enter a filename: ", "download.pdf");
|
||||||
|
|
||||||
//Assume if the user clicks cancel they don't want to download
|
// Assume if the user clicks cancel they don't want to download
|
||||||
if (fileName === null) return;
|
if (fileName === null) return;
|
||||||
|
|
||||||
const data = await dish.get(Dish.HTML);
|
const data = await dish.get(Dish.HTML);
|
||||||
//console.log(data, "this is our html")
|
// console.log(data, "this is our html")
|
||||||
const doc = new jsPDF("p", "px", "a4");
|
const doc = new jsPDF("p", "px", "a4");
|
||||||
|
|
||||||
const width = doc.internal.pageSize.getWidth();
|
const width = doc.internal.pageSize.getWidth();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user