Skip to content

Commit 35ce16e

Browse files
committed
fix(api/commonjs/loader.js): do not use 'accessSync' on android
1 parent 53252b8 commit 35ce16e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/commonjs/loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import location from '../location.js'
1111
import path from '../path.js'
1212
import URL from '../url.js'
1313
import fs from '../fs.js'
14+
import os from '../os.js'
1415

1516
const RUNTIME_SERVICE_WORKER_FETCH_MODE = 'Runtime-ServiceWorker-Fetch-Mode'
1617
const RUNTIME_REQUEST_SOURCE_HEADER = 'Runtime-Request-Source'
@@ -208,6 +209,7 @@ export class RequestStatus {
208209
}
209210

210211
if (
212+
os.platform() !== 'android' &&
211213
this.#request.id.includes(`://${application.config.meta_bundle_identifier}`)
212214
) {
213215
try {
@@ -440,6 +442,7 @@ export class Request {
440442
}
441443

442444
if (
445+
os.platform() !== 'android' &&
443446
/^(socket:|https:)/.test(this.id) &&
444447
this.id.includes(`//${application.config.meta_bundle_identifier}/`)
445448
) {

0 commit comments

Comments
 (0)