@open-wa/wa-automate 4.23.17 → 4.23.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -157,11 +157,11 @@ function create(config = {}) {
|
|
157
157
|
/**
|
158
158
|
* Check if the IGNORE folder exists, therefore, assume that the session is MD.
|
159
159
|
*/
|
160
|
-
const mdDir = config["userDataDir"] ||
|
161
|
-
if
|
162
|
-
|
163
|
-
|
164
|
-
}
|
160
|
+
// const mdDir = config["userDataDir"] || `${config?.inDocker ? '/sessions' : config?.sessionDataPath || '.' }/_IGNORE_${config?.sessionId || 'session'}`
|
161
|
+
// if(fs.existsSync(mdDir) && !config?.multiDevice) {
|
162
|
+
// spinner.info(`Multi-Device directory detected. multiDevice set to true.`);
|
163
|
+
// config.multiDevice = true;
|
164
|
+
// }
|
165
165
|
if ((config === null || config === void 0 ? void 0 : config.multiDevice) && (config === null || config === void 0 ? void 0 : config.chromiumArgs))
|
166
166
|
spinner.info(`Using custom chromium args with multi device will cause issues! Please remove themm`);
|
167
167
|
if ((config === null || config === void 0 ? void 0 : config.multiDevice) && !(config === null || config === void 0 ? void 0 : config.useChrome))
|
package/package.json
CHANGED