Skip to content

Commit

Permalink
resolved #121
Browse files Browse the repository at this point in the history
  • Loading branch information
vasani-arpit committed Mar 29, 2020
1 parent 3ff3120 commit 74152e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wbot",
"version": "0.12.1",
"version": "0.12.2",
"description": "A simple whatsapp reply bot using puppeteer.",
"main": "src/index.js",
"scripts": {
Expand Down
14 changes: 13 additions & 1 deletion src/WAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,19 @@ if (!window.Store) {
}
}

webpackJsonp([], { 'parasite': (x, y, z) => getStore(z) }, ['parasite']);
if (typeof webpackJsonp === 'function') {
webpackJsonp([], {'parasite': (x, y, z) => getStore(z)}, ['parasite']);
} else {
webpackJsonp.push([
['parasite'],
{
parasite: function (o, e, t) {
getStore(t);
}
},
[['parasite']]
]);
}
})();
}

Expand Down

0 comments on commit 74152e6

Please sign in to comment.