mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 796 forks source link

window.store is undefined #1053

Closed Parveen-Mothsara closed 2 years ago

Parveen-Mothsara commented 2 years ago

In new version of whatsapp window.store is undefined

cbeltrangomez84 commented 2 years ago

Check https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/1051

cleytoncoro commented 2 years ago
  1. Find this inside "/webwhatsapi/js/wapi.js":

    webpackChunkbuild.push([
                ["parasite" + tag],
                {
    
                },
                function (o, e, t) {
                    let modules = [];
                    for (let idx in o.m) {
                        let module = o(idx);
                        modules.push(module);
                    }
                    getStore(modules);
                }
            ]);
  2. Replace for this one:

    webpackChunkwhatsapp_web_client.push([
                ["parasite" + tag],
                {
    
                },
                function (o, e, t) {
                    let modules = [];
                    for (let idx in o.m) {
                        let module = o(idx);
                        modules.push(module);
                    }
                    getStore(modules);
                }
            ]);
Theblood commented 2 years ago

or you can try the WAPI_NEW, help us do PR's if you have new solutions, I'm here to help! https: //github.com/Theblood/Wapi_NEW

Thanks @cleytoncoro @cbeltrangomez84 !!

Parveen-Mothsara commented 2 years ago

thanks its working