Eel icon indicating copy to clipboard operation
Eel copied to clipboard

el.expose() does not work with a dynamic js function name

Open Yrij-Zhavoronkov opened this issue 1 year ago • 0 comments

Eel version 0.16.0

Describe the bug el.expose does not work with a dynamic function name. Example:

const public_function_name = `${module_name}{f_name}`;
eel.expose(some_function, public_function_name);

The function will be registered with the name 'public_function_name', but not with the contents of the variable.

System Information

  • OS: [Windows 10 x64]
  • Browser: [e.g. Chrome 131.0.6778.86 (Official Build)]
  • Python Distribution: [Python.org 3.10]

Yrij-Zhavoronkov avatar Dec 03 '24 12:12 Yrij-Zhavoronkov