mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
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.
26 lines
636 B
JavaScript
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;
|