overleaf/services/web/frontend/js/utils/worker.js
Alf Eaton 5e9af2c15c Migrate worker tests to Cypress (#7359)
GitOrigin-RevId: f373f4215e5f25d14256008cf5f6582eb3124431
2022-04-07 08:03:52 +00:00

9 lines
242 B
JavaScript

export const createWorker = callback => {
if (process.env.CYPRESS) {
return callback()
}
const webpackPublicPath = __webpack_public_path__
__webpack_public_path__ = '/'
callback()
__webpack_public_path__ = webpackPublicPath
}