thunderbug1 / streamlit-javascript

Streamlit component to execute javascript code on the client side and get back the result
MIT License
111 stars 3 forks source link

Return simple value #9

Open blackary opened 1 year ago

blackary commented 1 year ago

Is there an easy way to simply return something simple like window.parent.location.href (to get the url of the app) without explicitly nested it inside an async function?

andreasntr commented 1 year ago

Having the same issue, this suggestion does not work for me

ghz commented 1 year ago

Having the same issue, this suggestion does not work for me

The same here. Even a simple script = 'await (async function () { return "test"; })()' return 0