We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

neunygph's avatar
neunygph
Explorer | Level 4
8 years ago

Dropbox JavaScript SDK vs Dropbox saver JavaScript

Hello,   I'm just starting to use Dropbox JavaScript SDK from http://dropbox.github.io/dropbox-sdk-js/Dropbox.html on my client side. But there is a conflict when using both refrences from    ...
  • Greg-DB's avatar
    8 years ago

    These libraries weren't written with each other in mind unfortunately, but you can do something like this to work around it:

     

        <script src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="riqoimk2j9c8d1m" ></script>
        <script type="text/javascript">
            var Dropbox_Dropins = Dropbox;
        </script>
    
        <script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js" ></script>
        <script type="text/javascript">
            var Dropbox_SDK = Dropbox;
        </script>

    And then you can use Dropbox_Dropins or Dropbox_SDK in place of Dropbox respectively.