cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right 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: 

Serious problem of the Dropbox Chooser javascript

Serious problem of the Dropbox Chooser javascript

goodfall7
Explorer | Level 4

Hello!

I have a problem with the dropbox Chooser API.

 

https://www.dropbox.com/developers/chooser
https://www.dropbox.com/static/api/2/dropins.js <-- problem javascript

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="xxxxx"></script> <-- embed code

 

I have added "Chooser" javaScript to my dozens of web sites/pages. but recently errors started appearing.
All Window object functions before running "dropins.js" are overwritten.
So web page functions are broken.

When I looked at the "dropins.js" file... there was code that overwrites everything on the Window object. Isn’t this problematic code? Please make a fix.
========================
var W = window.Dropbox,
K = window,
F = o.Dropbox;
for (var q in F) K[q] = F[q]; <-- here
F.__esModule && Object.defineProperty(K, "__esModule", {
========================

Please do not overwrite existing web page functions.
There is no problem with Google Drive, One Drive, or Box javascript.
Only Dropbox overwrites existing functions.

For example, functions like "init()".

Dropbox.init ==> Window.init (Disables the existing “init” function on the webpage)

 

3 Replies 3

Greg-DB
Dropbox Staff

Thanks for the report! I'll have the team look into it.

Greg-DB
Dropbox Staff

This should be fixed now. Please let us know if you're still seeing any issues. Thanks!

goodfall7
Explorer | Level 4

Thanks for a fix. Now, no problem found.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    goodfall7 Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?