Skip to content

Commit

Permalink
fix: remove createWid
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Jun 30, 2023
1 parent 4f98590 commit 5e8da45
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/api/whatsapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,6 @@ export class Whatsapp extends ControlsLayer {
await page
.waitForSelector('#app .two', { visible: true })
.catch(() => {});

await page
.waitForFunction(
() => {
if (options.debug) {
console.log(`\nDebug: Loading wp app....`);
}
const StoreKey = Object.keys(window).find(
(k) =>
!!Object.getOwnPropertyDescriptor(window[k], 'WidFactory') &&
!!Object.getOwnPropertyDescriptor(
window[k].WidFactory,
'createWid'
)
);
if (StoreKey) {
window.Store = window[StoreKey];
return true;
}
return false;
},
{
timeout: 0,
polling: 100
}
)
.catch(() => {});
await this.initService();
await this.addChatWapi();
});
Expand Down

0 comments on commit 5e8da45

Please sign in to comment.