Skip to content

Commit

Permalink
Merge branch 'bug-14583898' of github.com:googledrive/realtime-playgr…
Browse files Browse the repository at this point in the history
…ound into bug-14583898
  • Loading branch information
sethmiles committed Jun 17, 2014
2 parents a52fe68 + 63020ad commit 17bfa65
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions js/realtime-client-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,16 @@ rtclient.RealtimeLoader.prototype.redirectTo = function(fileIds, userId) {
}
// We are still here that means the page didn't reload.
rtclient.params = rtclient.getParams();
for (var index in fileIds) {
gapi.drive.realtime.load(fileIds[index], this.onFileLoaded, this.initializeModel, this.handleErrors);
if(rtclient.params.ids){
for (var id in fileIds) {
gapi.drive.realtime.load(fileIds[index], this.onFileLoaded, this.initializeModel, this.handleErrors);
}
} else {
for (var index in fileIds) {
gapi.drive.realtime.load(fileIds[index], this.onFileLoaded, this.initializeModel, this.handleErrors);
}
}

}


Expand Down

0 comments on commit 17bfa65

Please sign in to comment.