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

OpenAPISnippets let over const #36

Closed
povilass opened this issue Feb 17, 2020 · 1 comment
Closed

OpenAPISnippets let over const #36

povilass opened this issue Feb 17, 2020 · 1 comment

Comments

@povilass
Copy link

povilass commented Feb 17, 2020

https://github.com/ErikWittern/openapi-snippet/blame/d31d79a19a22a3f08285f46fab81d8d63fc6299f/index.js#L202

const OpenAPISnippets = window.OpenAPISnippets || {} <------- let over const

// define that object
OpenAPISnippets = {
getSnippets,
getEndpointSnippets
}

can you fix issue where you can't redefine OpenAPISnippets because it's const and it fails of readonly property.

@ErikWittern
Copy link
Owner

@povilass Thanks for filing the issue, and @joe642 for the PR! I released a new version with the fix: https://github.com/ErikWittern/openapi-snippet/releases/tag/v0.8.1

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

No branches or pull requests

2 participants