Skip to content

Commit

Permalink
fix(image): use 'var' instead of 'const' (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson authored Dec 6, 2020
1 parent a54d2a1 commit 05fc8b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/image/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const mimeTypes = {
};

const domTemplate = ({ dataUri }) => `
const img = new Image();
var img = new Image();
img.src = "${dataUri}";
export default img;
`;

const constTemplate = ({ dataUri }) => `
const img = "${dataUri}";
var img = "${dataUri}";
export default img;
`;

Expand Down
Loading

0 comments on commit 05fc8b6

Please sign in to comment.