pointer.js: Add setter for server_furthest_read.

After migration to an ES6 module, `server_furthest_read` would no
longer be mutable from outside the module.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2018-08-04 02:41:12 -04:00
committed by Tim Abbott
parent e559662c8c
commit f9bf414b58
3 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ exports.set_furthest_read = function (value) {
exports.furthest_read = value;
};
exports.server_furthest_read = -1;
exports.set_server_furthest_read = function (value) {
exports.server_furthest_read = value;
};
var pointer_update_in_flight = false;