mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Remove iframe around web worker in codespace case
This commit is contained in:
parent
56b686f9fd
commit
796db55744
|
@ -386,6 +386,10 @@ async function handleRoot(req, res) {
|
|||
if (args['wrap-iframe']) {
|
||||
webConfigJSON._wrapWebWorkerExtHostInIframe = true;
|
||||
}
|
||||
if (req.headers['x-forwarded-host']) {
|
||||
// support for running in codespace => no iframe wrapping
|
||||
delete webConfigJSON.webWorkerExtensionHostIframeSrc;
|
||||
}
|
||||
|
||||
const authSessionInfo = args['github-auth'] ? {
|
||||
id: uuid.v4(),
|
||||
|
|
Loading…
Reference in a new issue