Skip to content

Commit

Permalink
Updated warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmester committed Jul 31, 2020
1 parent d45db10 commit 65b694f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/node-cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if (typeof process === "undefined" &&
typeof document !== "undefined"
) {
console.warn(
"Jdenticon: dist/jdenticon-node.js is only intended for Node.js environments. " +
"If you want to run Jdenticon in the browser, please add a reference " +
"to 'dist/jdenticon.js' or 'dist/jdenticon.min.js' instead.");
"Jdenticon: 'dist/jdenticon-node.js' is only intended for Node.js environments and will increase your " +
"bundle size when included in browser bundles. If you want to run Jdenticon in the browser, please add a " +
"reference to 'dist/jdenticon.js' or 'dist/jdenticon.min.js' instead.");
}

import { defineConfigPropertyWithWarn } from "./common/configuration";
Expand Down
6 changes: 3 additions & 3 deletions src/node-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if (typeof process === "undefined" &&
typeof document !== "undefined"
) {
console.warn(
"Jdenticon: dist/jdenticon-node.mjs is only intended for Node.js environments. " +
"If you want to run Jdenticon in the browser, please add a reference " +
"to 'dist/jdenticon.js' or 'dist/jdenticon.min.js' instead.");
"Jdenticon: 'dist/jdenticon-node.mjs' is only intended for Node.js environments and will increase your " +
"bundle size when included in browser bundles. If you want to run Jdenticon in the browser, please add a " +
"reference to 'dist/jdenticon.js' or 'dist/jdenticon.min.js' instead.");
}

export { configure } from "./apis/configure";
Expand Down

0 comments on commit 65b694f

Please sign in to comment.