chore(*): Remove console logs

This commit is contained in:
Josh Creek
2024-01-03 21:35:33 +00:00
parent 9fccf6ece2
commit 08afe6bc4c
-4
View File
@@ -5,7 +5,6 @@
async function printURLToPDF(url) {
try {
const response = await fetch(url);
console.log(response);
if (!response.ok) {
throw new Error(`Failed to fetch data from ${url}`);
@@ -16,12 +15,9 @@
const element = document.createElement('div');
element.innerHTML = htmlContent;
console.log(element.querySelector('.day-container'));
// pages => individual html blocks to print
// select all elements marked with 'day-container' to be printed into PDF
const pages = Array.from(element.querySelectorAll('.day-container'));
console.log(pages[0]);
const pdfOptions = {
margin: 0,
filename: `planner-${year}.pdf`,