Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Don't expect encoding-indexes to return object with indexes & don't r…
Browse files Browse the repository at this point in the history
…equire them if they are already present (#61) - Resolves #60

* Don't require encoding-indexes if they are already present
* Don't expect encoding-indexes to return object with indexes
  • Loading branch information
epaminond authored and inexorabletash committed Oct 30, 2016
1 parent 192293e commit b8503e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/encoding.js
Expand Up @@ -6,9 +6,9 @@
* @fileoverview Global |this| required for resolving indexes in node.
* @suppress {globalThis}
*/
if (typeof module !== "undefined" && module.exports) {
this["encoding-indexes"] =
require("./encoding-indexes.js")["encoding-indexes"];
if (typeof module !== "undefined" && module.exports &&
!this["encoding-indexes"]) {
require("./encoding-indexes.js");
}

(function(global) {
Expand Down

0 comments on commit b8503e7

Please sign in to comment.