Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Update docs to show exposing js function with custom name (#64)#272

Closed
alexwohlbruck wants to merge 1 commit intopython-eel:masterfrom
alexwohlbruck:docs-expose
Closed

Update docs to show exposing js function with custom name (#64)#272
alexwohlbruck wants to merge 1 commit intopython-eel:masterfrom
alexwohlbruck:docs-expose

Conversation

@alexwohlbruck
Copy link
Copy Markdown
Contributor

Adding documentation that shows how to specify a custom name for exposed JS functions.
This is useful for apps that are minified when built and the function names are changed.

@samuelhwilliams
Copy link
Copy Markdown
Collaborator

Good idea. It might be nice to explicitly call out the reason you've noted - that this is necessary in some cases, e.g. when you're going to have minimised javascript. Would you mind making that update?

@alexwohlbruck
Copy link
Copy Markdown
Contributor Author

The code I wrote in the example actually already works, I just wanted to point it out in the docs since I was running into this trouble and I can see it being a common problem.

Comment thread README.md
@alexwohlbruck alexwohlbruck mentioned this pull request Apr 16, 2020
samuelhwilliams pushed a commit that referenced this pull request Apr 16, 2020
* Update README.md

Give example for custom function names for eel.expose
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