chore(): generate docs
This commit is contained in:
parent
ef49b8a2be
commit
54a77cf254
76 changed files with 241 additions and 233 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta name="generator" content="JSDoc 3.6.11">
|
||||
<meta charset="utf-8">
|
||||
<title>whatsapp-web.js 1.33.2 » Source: util/Injected/Store.js</title>
|
||||
<title>whatsapp-web.js 1.33.3 » Source: util/Injected/Store.js</title>
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||
<div id="jsdoc-navbar-container">
|
||||
<div id="jsdoc-navbar-content">
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>33.<wbr>2</a>
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>33.<wbr>3</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
@ -133,6 +133,7 @@ exports.ExposeStore = () => {
|
|||
window.Store.PinnedMsgUtils = window.require('WAWebSendPinMessageAction');
|
||||
window.Store.UploadUtils = window.require('WAWebUploadManager');
|
||||
window.Store.WAWebStreamModel = window.require('WAWebStreamModel');
|
||||
window.Store.FindOrCreateChat = window.require('WAWebFindChatAction');
|
||||
|
||||
window.Store.Settings = {
|
||||
...window.require('WAWebUserPrefsGeneral'),
|
||||
|
|
@ -241,16 +242,23 @@ exports.ExposeStore = () => {
|
|||
* @param {Function} callback Modified function
|
||||
*/
|
||||
window.injectToFunction = (target, callback) => {
|
||||
const module = window.require(target.module);
|
||||
const originalFunction = module[target.function];
|
||||
const modifiedFunction = (...args) => callback(originalFunction, ...args);
|
||||
module[target.function] = modifiedFunction;
|
||||
let module = window.require(target.module);
|
||||
|
||||
const path = target.function.split('.');
|
||||
const funcName = path.pop();
|
||||
for (const key of path) {
|
||||
module = module[key];
|
||||
}
|
||||
|
||||
const originalFunction = module[funcName];
|
||||
module[funcName] = (...args) => callback(originalFunction, ...args);
|
||||
};
|
||||
|
||||
window.injectToFunction({ module: 'WAWebBackendJobsCommon', function: 'mediaTypeFromProtobuf' }, (func, ...args) => { const [proto] = args; return proto.locationMessage ? null : func(...args); });
|
||||
|
||||
window.injectToFunction({ module: 'WAWebE2EProtoUtils', function: 'typeAttributeFromProtobuf' }, (func, ...args) => { const [proto] = args; return proto.locationMessage || proto.groupInviteMessage ? 'text' : func(...args); });
|
||||
|
||||
window.injectToFunction({ module: 'WAWebLid1X1MigrationGating', function: 'Lid1X1MigrationUtils.isLidMigrated' }, () => false);
|
||||
};
|
||||
</code></pre>
|
||||
</article>
|
||||
|
|
@ -262,7 +270,7 @@ exports.ExposeStore = () => {
|
|||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||
<div id="jsdoc-footer-container">
|
||||
<p>
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on September 2, 2025.
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on September 5, 2025.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue