Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

fix: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.#160

Merged
alexdima merged 1 commit into
microsoft:mainfrom
six-ponies:fix/import-script-protocol-error
Aug 30, 2021
Merged

fix: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.#160
alexdima merged 1 commit into
microsoft:mainfrom
six-ponies:fix/import-script-protocol-error

Conversation

@six-ponies

Copy link
Copy Markdown

This commit is to fix 'Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.' error when the worker's url starts with '//'

@alexdima

Copy link
Copy Markdown
Member

@six-ponies Do you have an example webpack config that triggers this to help reproduce?

@six-ponies

six-ponies commented Aug 25, 2021

Copy link
Copy Markdown
Author

@six-ponies Do you have an example webpack config that triggers this to help reproduce?

see: https://github.com/six-ponies/monaco-editor-test

image

@alexdima

Copy link
Copy Markdown
Member

Thank you!

@alexdima alexdima added this to the September 2021 milestone Aug 30, 2021
@alexdima alexdima merged commit 6a882e9 into microsoft:main Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants