From a9d7b7b3d9c73644e5f20957c60c2721121d316e Mon Sep 17 00:00:00 2001 From: NHLOCAL Date: Mon, 14 Oct 2024 02:32:31 +0300 Subject: [PATCH] Update script.js --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 961e6e5..4cb2d40 100644 --- a/script.js +++ b/script.js @@ -91,6 +91,7 @@ document.addEventListener('DOMContentLoaded', () => { // פונקציה ליצירת PDF מהתוכן הנבחר function generatePDF() { + const { jsPDF } = window.jspdf; // ייבוא jsPDF מהמודול של הספרייה const activeSection = document.querySelector('.content-section.active'); const pdf = new jsPDF('p', 'pt', 'a4'); pdf.html(activeSection, {