mirror of https://github.com/calzoneman/sync.git
only execute callback if it's not undefined
This commit is contained in:
parent
949299c5e5
commit
f5528c766f
|
@ -1000,7 +1000,9 @@ PlaylistModule.prototype.refreshGoogleDocs = function (cb) {
|
|||
if (self.current) {
|
||||
self.current.media.meta.object = self.current.media.meta.object || null;
|
||||
}
|
||||
cb();
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
||||
if (!this.current || this.current.media.type !== "gd") {
|
||||
|
|
Loading…
Reference in New Issue