Skip to content

Commit cf7b446

Browse files
committed
bugfix, because it seems i cannto even read the code i copypaste
1 parent 6047b56 commit cf7b446

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

js/imageBrowser.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,17 @@
5959
function loadDriveApi() {
6060
//load realtime api.
6161

62-
gapi.load('auth:client,drive-realtime,drive-share', start);
63-
64-
gapi.client.load('drive', 'v2', function () {
65-
// Get query param "id"
66-
var param = location.search.substring(1).split("&")
67-
.map(function (param) { return param.split("="); })
68-
.find(function (param) { return param[0] === "id"; });
69-
if (param === undefined) { param = [] };
70-
openFolder(param[1] || folder);
62+
gapi.load('auth:client,drive-realtime,drive-share', function(){
63+
gapi.client.load('drive', 'v2', function () {
64+
// Get query param "id"
65+
var param = location.search.substring(1).split("&")
66+
.map(function (param) { return param.split("="); })
67+
.find(function (param) { return param[0] === "id"; });
68+
if (param === undefined) { param = [] };
69+
openFolder(param[1] || folder);
70+
});
7171
});
72+
7273
}
7374

7475
/**

0 commit comments

Comments
 (0)