appscms-tools-theme 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/js/googledrive.js +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74c80e5e73290857e21cb4d38f7b6d667a4f75872d82632b625ae090c7d036dc
|
4
|
+
data.tar.gz: f57d4364becb7eeb90ec3260df18a6f6ae24382fc4dbb650c8c4ee0ae79500dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93f37bedd59a78488636afaef48fc1f6552e81866c01b28b08232a0d0344b4d527237ab821686746c5e7c8114b5dbc403102e04dcf5998ea6fa38deeaa478b75
|
7
|
+
data.tar.gz: 6a81516dbe48ae1f45687411eba3a0966fb3c3f0dca64b0b2ac72c870b7b2836837f081ad8ab5cb9e877a0da72c8db02ab3c643e38dded37bb3b35a8355a9f86
|
data/assets/js/googledrive.js
CHANGED
@@ -52,7 +52,7 @@ const createPicker = () => {
|
|
52
52
|
const pickerCallback = async (data) => {
|
53
53
|
if (data.action == google.picker.Action.PICKED) {
|
54
54
|
const res = await fetch(
|
55
|
-
`https://www.googleapis.com/drive/
|
55
|
+
`https://www.googleapis.com/drive/v2/files/${data.docs[0].id}?key=${developerKey}?alt=media`,
|
56
56
|
{
|
57
57
|
headers: {
|
58
58
|
Authorization: `Bearer ${oauthToken}`,
|
@@ -60,7 +60,7 @@ const pickerCallback = async (data) => {
|
|
60
60
|
},
|
61
61
|
}
|
62
62
|
).then((res) => res.json())
|
63
|
-
const response = await fetch(res.
|
63
|
+
const response = await fetch(res.webContentLink).then((res) => res.blob())
|
64
64
|
let metadata = {
|
65
65
|
type: data.docs[0].mimeType,
|
66
66
|
}
|