Singleton responsible for polling for updates of the page in the background.
- Source:
Methods
(static) init()
- Source:
For internal use. Initialize the update checker.
(static) setup(previousVisitTime, submittedCommentId)
- Source:
For internal use. Set up the update checker. Executed on each page reload.
Parameters:
Name | Type | Description |
---|---|---|
previousVisitTime |
string | |
submittedCommentId |
number |
(async, inner) markCommentsAsChanged(type, data, olderRevisionId, newerRevisionId)
- Source:
Mark comments as changed, verifying diffs if possible to decide whether to show the diff link.
Parameters:
Name | Type | Description |
---|---|---|
type |
'changed' | 'changedSince' | 'deleted' | |
data |
Array.<module:updateChecker~MarkAsChangedData> | |
olderRevisionId |
number | |
newerRevisionId |
number |