From 99a2cbc60461de724167c525cfc89d35c3480cec Mon Sep 17 00:00:00 2001 From: Max Wu Date: Sat, 11 Feb 2017 00:11:21 +0800 Subject: [PATCH] Update google drive picker to enable setOwnedByMe to show shared files and folders --- public/js/google-drive-picker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/google-drive-picker.js b/public/js/google-drive-picker.js index e653653c..94aa77ff 100644 --- a/public/js/google-drive-picker.js +++ b/public/js/google-drive-picker.js @@ -52,6 +52,7 @@ var view = new google.picker.DocsView(); view.setMimeTypes("text/markdown,text/html"); view.setIncludeFolders(true); + view.setOwnedByMe(true); this.picker = new google.picker.PickerBuilder(). enableFeature(google.picker.Feature.NAV_HIDDEN). addView(view). @@ -115,4 +116,4 @@ }, callback ? callback : function() {}); } }; -}()); \ No newline at end of file +}());