streamlit-javascript icon indicating copy to clipboard operation
streamlit-javascript copied to clipboard

Return simple value

Open blackary opened this issue 3 years ago • 3 comments

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?

blackary avatar Nov 17 '22 14:11 blackary

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

andreasntr avatar Oct 28 '23 15:10 andreasntr

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

ghz avatar Oct 29 '23 15:10 ghz