Skip to content

Commit

Permalink
feat: files corrections and config puppeter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Oct 29, 2024
1 parent eb29768 commit 5a4c95d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 53 deletions.
4 changes: 0 additions & 4 deletions src/webpack/assets/help/inject-config.js

This file was deleted.

14 changes: 7 additions & 7 deletions src/webpack/assets/help/process-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ export async function processFiles(chat, blobs) {
});

await mediaCollection.processAttachments(
Debug.VERSION === '0.4.613' ?
blobs :
blobs.map((blob) => {
return {
file: blob,
};
return {
file: blob,
filename: blob.name,
mimetype: blob.type,
};
}),
chat,
true,
chat
);
);

return mediaCollection;
}
38 changes: 0 additions & 38 deletions src/webpack/help/check-webpack.ts

This file was deleted.

8 changes: 4 additions & 4 deletions src/webpack/help/config-puppeter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export const puppeteerConfig = {
whatsappUrl: 'https://web.whatsapp.com',
useragentOverride:
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3641.0 Safari/537.36',
chromiumArgs: [
'--disable-service-workers',
'--no-zygote',
'--log-level=3',
'--disable-site-isolation-trials',
Expand All @@ -27,9 +28,6 @@ export const puppeteerConfig = {
'--disable-histogram-customizer',
'--disable-gl-extensions',
'--disable-composited-antialiasing',
// '--auto-open-devtools-for-tabs',
'--user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36',
//// new
'--disable-background-networking',
'--enable-features=NetworkService,NetworkServiceInProcess',
'--disable-background-timer-throttling',
Expand All @@ -53,5 +51,7 @@ export const puppeteerConfig = {
'--use-mock-keychain',
'--enable-blink-features=IdleDetection',
'--export-tagged-pdf',
`--hostname=test`,
'about:blank',
],
};

0 comments on commit 5a4c95d

Please sign in to comment.