Commit e4b2c3b0 authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Merge branch 'fix-ide-web-worker-relative-url' into 'master'

Fixed Web IDE web workers not loading with relative root URL

Closes #50451

See merge request gitlab-org/gitlab-ce!26015
parents de61dc4c 590f9a93
...@@ -6,5 +6,5 @@ export function resetServiceWorkersPublicPath() { ...@@ -6,5 +6,5 @@ export function resetServiceWorkersPublicPath() {
// see: https://webpack.js.org/guides/public-path/ // see: https://webpack.js.org/guides/public-path/
const relativeRootPath = (gon && gon.relative_url_root) || ''; const relativeRootPath = (gon && gon.relative_url_root) || '';
const webpackAssetPath = `${relativeRootPath}/assets/webpack/`; const webpackAssetPath = `${relativeRootPath}/assets/webpack/`;
__webpack_public_path__ = webpackAssetPath; // eslint-disable-line camelcase window.__webpack_public_path__ = webpackAssetPath; // eslint-disable-line
} }
---
title: Fixed Web IDE web workers not working with relative URLs
merge_request:
author:
type: fixed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment