#753·Eel

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

Author: Yrij-ZhavoronkovCreated Dec 3, 2024Updated Dec 3, 2024
Labelsbug

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]