js: Convert static/js/blueslip.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-03-16 15:38:59 -07:00
committed by Steve Howell
parent b0ceaa1ea0
commit 3ef6f6e2e2
123 changed files with 155 additions and 44 deletions

View File

@@ -127,7 +127,8 @@ new feature hard to miss.
* Blueslip keeps a log of all the notices it has received during a
browser session, and includes them in reports to the server, so that
one can see cases where exceptions chained together. You can print
this log from the browser console using `blueslip.get_log()`.
this log from the browser console using `blueslip =
require("./static/js/blueslip"); blueslip.get_log()`.
Blueslip supports several error levels:
* `throw new Error(…)`: For fatal errors that cannot be easily