dropbox - load script from local

This commit is contained in:
Azgaar 2022-05-20 00:07:13 +03:00
parent 5dea22c4a3
commit 6cc4c01bad
4 changed files with 4 additions and 3 deletions

View file

@ -52,7 +52,7 @@ window.Cloud = (function () {
},
async connect(token) {
await import("https://unpkg.com/dropbox@10.8.0/dist/Dropbox-sdk.min.js");
await import("../../libs/dropbox-sdk.min.js");
const auth = new Dropbox.DropboxAuth({clientId: this.clientId});
auth.setAccessToken(token);
this.api = new Dropbox.Dropbox({auth});