#thom's support post lolz

36 messages · Page 1 of 1 (latest)

worldly flicker
#

JS doesn't seem to function- wondering if that's the issue.

untold goblet
#

generally (as in tauri itself) no. But if you use a frontend stack that does require node, then yes.

#

for example if you use frontend bundlers like vitejs or webpack

worldly flicker
#

ah I don't

#

but main.js doesn't seem to run

untold goblet
#

are you loading it in your index.html file?

#

and if so, are there any errors in the devtools console?

worldly flicker
#

yep

#

dev tools?

untold goblet
#

right click on the window, "inspect" or something

worldly flicker
#

nothing

untold goblet
#

does your html/css load fine?

worldly flicker
#

ye it does

untold goblet
#

can you share your project or is it private?

worldly flicker
#

I can share it

#

lemme commit rq

#

ah shoot key expired

#

ah I was building the release package so maybe dev tools was stripped

#

yup

worldly flicker
#

Ah and further, addEventListener doesn't accept event names starting with "on"

#

Gotcha.

untold goblet
#

yeah, the events themselves don't have a on prefix. That's just for the respective functions, like object.onmouseenter = some_function;

#

didn't even notice that in your code x)

worldly flicker
#

Haha

#

Everything works as expected now. Now all I gotta do is send key events to android.

#

thom's support post lolz

worldly flicker
#

Do you think converting from u32 to char is always valid code-point wise?

untold goblet
#

i think the u32 range is much larger then the unicode ones so once the u32 number gets too large you get "invalid" chars (whatever that would mean here)

#

i could imagine that there are issues in the valid code range too but no idea or proof x)

worldly flicker
#

ah ok

worldly flicker
#

How is state stored in tauri?

untold goblet