Thursday 22 December 2016

Best way to add dynamic content to an electron app with node?

Hi, I have an electron app, the background node.js connects to twitch and reads the chat. I am trying to have that text update the electron app in a chat window.I'm very new to electron and node, so not sure how to do it. so in my html page, I have a div called chat, and in the javascript file I tried to do getElementByID but that doesn't work in node.js.So I just used javascript to create an elecment, and append it to the html body. The problem with this is I cant control where it adds.Is there anyway of appending the data to a specified div? Im sure there is a way, but whats the easiest / best way?

Submitted December 22, 2016 at 08:57AM by mushmushmush

No comments:

Post a Comment