mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
ES and TypeScript modules are strict by default and don’t need this directive. ESLint will remind us to add it to new CommonJS files and remove it from ES and TypeScript modules. Signed-off-by: Anders Kaseorg <anders@zulip.com>
19 lines
431 B
JavaScript
19 lines
431 B
JavaScript
"use strict";
|
|
|
|
function set_tutorial_status(status, callback) {
|
|
return channel.post({
|
|
url: "/json/users/me/tutorial_status",
|
|
data: {status: JSON.stringify(status)},
|
|
success: callback,
|
|
});
|
|
}
|
|
|
|
exports.initialize = function () {
|
|
if (page_params.needs_tutorial) {
|
|
set_tutorial_status("started");
|
|
narrow.by("is", "private", {trigger: "sidebar"});
|
|
}
|
|
};
|
|
|
|
window.tutorial = exports;
|