diff --git a/src/mercury.js b/src/mercury.js index 8d970115..c79fafc7 100644 --- a/src/mercury.js +++ b/src/mercury.js @@ -86,6 +86,12 @@ const Mercury = { }; } + // if this parse is happening in the browser, + // clean up any trace from the page. + if (cheerio.browser) { + cheerio.cleanup(); + } + return result; },