Skip to content

Commit

Permalink
Fix Ubuntu runner, thanks @mega-sjr
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Casorran <[email protected]>
  • Loading branch information
diegocr committed Oct 6, 2023
1 parent 976b5d8 commit 81b3c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const config = {
COMPRESS: !process.env.NOCOMPRESS,
MOBILE_DEVICE: process.env.MOBILE_DEVICE || 'iPhone 8 Plus',
ARCHIVE_PATH: process.env.ARCHIVE_PATH || path.join(cwd, 'archive'),
DISABLE_CHROME_SANDBOX: process.env.DISABLE_CHROME_SANDBOX || false,
DISABLE_CHROME_SANDBOX: process.env.DISABLE_CHROME_SANDBOX || process.platform !== 'win32',

sites: {
'mega.nz': {
Expand Down Expand Up @@ -233,7 +233,7 @@ async function launch(url, selector, device) {
'use strict';

const args = [];
if (config.DISABLE_CHROME_SANDBOX){
if (config.DISABLE_CHROME_SANDBOX | 0) {
args.push('--no-sandbox');
}

Expand Down

0 comments on commit 81b3c39

Please sign in to comment.