Update google drive picker to enable setOwnedByMe to show shared files and folders

This commit is contained in:
Max Wu 2017-02-11 00:11:21 +08:00 committed by GitHub
parent cd24e75805
commit 99a2cbc604
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@
var view = new google.picker.DocsView(); var view = new google.picker.DocsView();
view.setMimeTypes("text/markdown,text/html"); view.setMimeTypes("text/markdown,text/html");
view.setIncludeFolders(true); view.setIncludeFolders(true);
view.setOwnedByMe(true);
this.picker = new google.picker.PickerBuilder(). this.picker = new google.picker.PickerBuilder().
enableFeature(google.picker.Feature.NAV_HIDDEN). enableFeature(google.picker.Feature.NAV_HIDDEN).
addView(view). addView(view).