Inject HTML elements in studio page #5197
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Component: Studio
Type: Feature Request ✨
Describe the problem to be solved
Currently, I am trying to inject some HTML into studio page. I was able to inject the HTML using the plugin.
To inject the HTML elements I have used document.onreadystatechange event (Fires when the state of the object has changed) event of DOM in studio page. I am using this event because I cannot append elements before the DOM loads and this event is fired when DOM has completed loading.
The drawback of using this event is the injected elements load only once. If we came to that path from other paths the elements do not get injected and in order to inject them, we have to refresh the page.
Is there a way to inject HTML in desired pages or do I need to use any hooks to inject HTML?
Describe the solution you would like
The text was updated successfully, but these errors were encountered: