whatsapp-web.js 1.34.0 → 1.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-web.js",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -213,6 +213,8 @@ exports.ExposeStore = () => {
213
213
  window.injectToFunction = (target, callback) => {
214
214
  let module = window.require(target.module);
215
215
 
216
+ if (!module) return;
217
+
216
218
  const path = target.function.split('.');
217
219
  const funcName = path.pop();
218
220
  for (const key of path) {