Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addJsPDF(callback) {
- if (typeof jsPDF === 'undefined') {
- var confettiScript = document.createElement('script');
- confettiScript.src = 'https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js';
- confettiScript.async = true;
- confettiScript.onload = callback;
- document.head.appendChild(confettiScript);
- } else {
- callback();
- }
- }
- addJsPDF();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement