Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError Cannot set property 'display' of undefined in Qt WebEngine #65

Open
capital-G opened this issue May 16, 2024 · 1 comment
Open

Comments

@capital-G
Copy link

Hi,

I took a look at if Temml could work under a Qt WebEngine browser and it works, although setting display mode to true generates an error and does not generate an output.

*** JavaScript Message: "Uncaught TypeError: Cannot set property 'display' of undefined"
* line: 608
* source ID: "file:///Users/scheiba/Library/Application%20Support/SuperCollider/Help/lib/temml-0.10.27/temml.js"

I commented out said line

node.style[style] = this.style[style];

and then it started working.

The qt version I used was 5.15.10. which has the navigator.userAgent

Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6_6)
AppleWebKit/537.36 (KHTML, like Gecko)
QtWebEngine/5.15.11
Chrome/87.0.4280.144
Safari/537.36

I used the temml-0.10.27.

Do you have an idea what could be the problem in this case?

@capital-G capital-G changed the title TypeError Cannot set property 'display' of undefined" * line: 608 in Qt WebEngine TypeError Cannot set property 'display' of undefined in Qt WebEngine May 16, 2024
@ronkok
Copy link
Owner

ronkok commented May 20, 2024

I do not have QT browser. If you work with me a little, maybe we can narrow down the source of this bug.

In file temml.js, try commenting out line 2338, math.style.display = "block math";. Let me know if Temml will then work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants