feat: disable / enable WA Web features (#543)

* Added Features and Enabling/Disabling of Features within WhatsappWeb

* remove feature commands from example

Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com>
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
This commit is contained in:
Aliyss Snow
2021-06-01 02:58:55 +02:00
committed by GitHub
parent 5177a257cf
commit 63d11d3f84
3 changed files with 45 additions and 3 deletions

View File

@@ -32,9 +32,9 @@ exports.ExposeStore = (moduleRaidStr) => {
window.Store.Sticker = window.mR.findModule('Sticker')[0].default.Sticker;
window.Store.UploadUtils = window.mR.findModule((module) => (module.default && module.default.encryptAndUpload) ? module.default : null)[0].default;
window.Store.Label = window.mR.findModule('LabelCollection')[0].default;
window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].default;
window.Store.QueryOrder = window.mR.findModule('queryOrder')[0];
window.Store.QueryProduct = window.mR.findModule('queryProduct')[0];
};
exports.LoadUtils = () => {