Skip to content

Commit

Permalink
Use sendMessage in broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
muxin committed Dec 7, 2016
1 parent c25b98b commit ea7fd00
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/service/viewer-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1059,11 +1059,9 @@ export class Viewer {
// Messaging is not expected.
return;
}
this.messagingMaybePromise_.then(() => {
if (this.messageDeliverer_) {
this.messageDeliverer_('broadcast', message, false);
}
});

// This uses messageReadyPromise that throws
this.sendMessage('broadcast', message);
}

/**
Expand Down

0 comments on commit ea7fd00

Please sign in to comment.