If you're a Dropbox employee reading this right now, you should go find whatever team at Dropbox pushed a new version of dropins.js today and tell them to roll back their changes, because it's breaking other libraries.
Our app that uses the standard dropins.js embed began crashing this afternoon with no changes pushed:
<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="OUR_KEY" async=""></script>
An update to ^ that embed link was pushed earlier today that breaks some other Javascript libraries, like Mux, when they try to access properties on the window object.
Some steps to reproduce if you want to:
• Create a new Next.js app.
• Add dropins.js to the _document file.
• Install mux-player-react and try to use it as a React component.
Error: TypeError: Cannot read properties of undefined (reading 'performance'