Is your feature request related to a problem? Please describe.
I’ve been working on getting the web sdk working inside a Single Page Application style site. Because the ZoomMtg object creates the #zmmtg-root element when it’s loaded, I made it only load the SDK on the vue-routed page which needs it.
I have it destroying/unloading the ZoomMtg object when the user navigates away, but when they navigate back again, there are some issues with Object.defineProperty things that the
zoomus-websdk.umd.min.js file applies.
These are Array.prototype.uniquelize, Array.prototype.union, and Array.prototype.minus.
Describe the solution you’d like
Describe alternatives you’ve considered
- Easiest: Match other is-this-set checks in the same file , e.g.
Array.prototype.union || Object.defineProperty(Array.prototype,"union"…
- Better: Mark all of the properties as configurable, and add a ZoomMtg.unload to unset them all, among other things.
This is a requested re-post of this thread on the Web SDK forum, including a quick regex fix, and some more detail on the file locations etc.