When using this DOM example from the web-sys library to manipulate the elements in the UXP browser, I get a nasty
Window is not defined error.
As per the screenshot, this works perfectly in a traditional web browser. Based on some of the other obstacles I’ve had in making this sample work, I’m assuming this is part of the modern browser limitations of UXP.
I tried using node-window-polyfill to inject the Window global to no avail. Does anyone have any other ideas or insights to get this going? Or should I take note of this as a current limitation?