This commit is contained in:
syuilo
2017-03-27 04:39:46 +09:00
parent de6e109a91
commit 692bd515e3
6 changed files with 5 additions and 25 deletions

View File

@@ -198,13 +198,9 @@
this.stream.on('drive_folder_created', this.onStreamDriveFolderCreated);
this.stream.on('drive_folder_updated', this.onStreamDriveFolderUpdated);
// Riotのバグでnullを渡しても""になる
// https://github.com/riot/riot/issues/2080
//if (this.opts.folder)
//if (this.opts.file)
if (this.opts.folder && this.opts.folder != '') {
if (this.opts.folder) {
this.cd(this.opts.folder, true);
} else if (this.opts.file && this.opts.file != '') {
} else if (this.opts.file) {
this.cf(this.opts.file, true);
} else {
this.fetch();