Skip to content

Commit

Permalink
Use proper import instead of require.
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwede committed Jul 1, 2019
1 parent 7188231 commit 7b3457c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import jsPDF from 'jspdf';
import html2canvas from 'html2canvas';
import { objType, createElement, cloneNode, toPx } from './utils.js';
var Promise = require('es6-promise').Promise;
import es6promise from 'es6-promise';
var Promise = es6promise.Promise;

/* ----- CONSTRUCTOR ----- */

Expand Down

0 comments on commit 7b3457c

Please sign in to comment.