Skip to content

Commit

Permalink
hook for goToRevision event
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcLear committed Mar 23, 2020
1 parent 43ca44e commit be5c1c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/static/js/broadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
var self = this;
var path = revisionInfo.getPath(padContents.currentRevision, newRevision);
debugLog('newRev: ', padContents.currentRevision, path);

hooks.aCallAll('goToRevisionEvent', {
rev: newRevision
});

if (path.status == 'complete')
{
var cs = path.changesets;
Expand Down

0 comments on commit be5c1c9

Please sign in to comment.