[Question] Best way to register a function on window object
[issue link]I am trying to create a webpage, using nuxt, which needs to have hooks on the window object.
For example, I have a c++ endpoint, that spawns a browser and then calls into a Javascript function that would be registered on the window object. This Javascript function is a part of a vue component (that i need to register on the window object).
Curious as to what is the best way to achieve this?
I do understand this might not be a situation that is meant to be handled by nuxt, but i am looking for a safe workaround for implementing this.