removing uneccesary logs, defer script load

This commit is contained in:
Mészáros Gergely 2021-09-07 22:18:09 +02:00
parent 07a232f0fd
commit 6aab6a782c
2 changed files with 1 additions and 4 deletions

View file

@ -13,7 +13,6 @@
window.
*/
const REDIRECT_URI = window.location.origin + window.location.pathname;
console.log('redirect uri:', REDIRECT_URI);
const dbxAuth = new Dropbox.DropboxAuth({ clientId: 'sp7tzwm27u2w5ns', });
const spObj = new URLSearchParams(window.location.search);
@ -37,7 +36,6 @@
dbxAuth.getAccessTokenFromCode(REDIRECT_URI, searchParams.code)
.then((resp) => {
const token = resp.result.access_token;
console.log('calling window opener...')
window.opener.Cloud.providers.dropbox.setDropBoxToken(token)
}).catch((error) => {
console.error(error)