Skip to content

Commit

Permalink
Fix version logging (Fix #1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Feb 15, 2018
1 parent 9fb9898 commit da2794f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,9 @@ export type Options = {
};

const html2canvas = (element: HTMLElement, conf: ?Options): Promise<*> => {
// eslint-disable-next-line no-console
if (typeof console === 'object' && typeof console.log === 'function') {
// eslint-disable-next-line no-console
console.log(`html2canvas ${__VERSION__}`);
}

const config = conf || {};
const logger = new Logger(typeof config.logging === 'boolean' ? config.logging : true);
logger.log(`html2canvas ${__VERSION__}`);

if (__DEV__ && typeof config.onrendered === 'function') {
logger.error(
Expand Down

0 comments on commit da2794f

Please sign in to comment.