zulip/static/js/tutorial.js

19 lines
431 B
JavaScript
Raw Normal View History

"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;