Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the js mime type #1576

Merged
merged 1 commit into from
May 24, 2023
Merged

Fix the js mime type #1576

merged 1 commit into from
May 24, 2023

Conversation

Senyoret1
Copy link
Contributor

Did you run make format && make check?
Can’t from my dev enviroment, will fix any problem form another machine if a problem appears.

Changes:

  • The correct mime type for .js files was added. This is because, on Windows, the server returns “text/plain” as the mime type of the .js files and that does not allow to open the Hypervisor UI, as modern browsers block the excecution if the mime type is not correct. This is similar to a change that was made to the explorer: Update to Go18 skycoin-explorer#424 (comment)

How to test this PR:
Opening the Hypervisor UI from localhost:8000 should work well on Windows.

Copy link
Collaborator

@0pcom 0pcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@0pcom 0pcom merged commit f426b20 into skycoin:develop May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants