cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New version of Dropbox embed dropins.js breaks other libraries, including Mux.

New version of Dropbox embed dropins.js breaks other libraries, including Mux.

jayharris
New member | Level 2

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'

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff

This should be working properly again now. Please let us know if you're still seeing this issue. Thanks!

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff

Thanks for the report! We're looking into it.

Greg-DB
Dropbox Staff

This should be working properly again now. Please let us know if you're still seeing this issue. Thanks!

jayharris
New member | Level 2

Looks like that fix works for us - thanks for the quick response!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    jayharris New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?