From b9461b0302fdaa334a4cf214d1c476267c1aafe1 Mon Sep 17 00:00:00 2001 From: Oscar Perez Date: Wed, 23 Mar 2016 16:22:39 -0400 Subject: [PATCH] Fixed setting module.exports when it does not exist (e.g. when using this in IE10). --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0b1547f..b20c2d8 100644 --- a/index.js +++ b/index.js @@ -582,4 +582,6 @@ if (!MutationObserver) { MutationObserver = JsMutationObserver; } -module.exports = MutationObserver; +if (typeof module !== 'undefined') { + module.exports = MutationObserver; +}