Files
zulip/static/js/feature_flags.js
Armaan Ahluwalia 6d255efe4c app: Prepare JS files for consumption by webpack.
This commit prepares the frontend code to be consumed by webpack.

It is a hack: In theory, modules should be declaring and importing the
modules they depend on and the globals they expose directly.

However, that requires significant per-module work, which we don't
really want to block moving our toolchain to webpack on.

So we expose the modules by setting window.varName = varName; as
needed in the js files.
2018-07-05 10:53:36 +02:00

26 lines
636 B
JavaScript

var feature_flags = (function () {
var exports = {};
exports.load_server_counts = false;
// Experimental modification to support much wider message views.
exports.full_width = false;
// The features below have all settled into their final states and can
// be removed when we get a chance
exports.mark_read_at_bottom = true;
exports.propagate_topic_edits = true;
exports.clicking_notification_causes_narrow = true;
exports.collapsible = false;
exports.reminders_in_message_action_menu = false;
return exports;
}());
if (typeof module !== 'undefined') {
module.exports = feature_flags;
}
window.feature_flags = feature_flags;