overleaf/services/web/frontend/js/utils/worker.js

10 lines
242 B
JavaScript
Raw Normal View History

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