electron_bridge: Notify electron app when realm name is updated.

This commit is contained in:
Priyank
2018-03-20 17:30:25 +00:00
committed by Tim Abbott
parent f0190fe0b8
commit 603dc4a2ef

View File

@@ -91,6 +91,10 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
settings_org.render_signup_notifications_stream_ui(
page_params.realm_signup_notifications_stream_id);
}
if (event.property === 'name' && window.electron_bridge !== undefined) {
window.electron_bridge.send_event('realm_name', event.value);
}
} else if (event.op === 'update_dict' && event.property === 'default') {
_.each(event.data, function (value, key) {
page_params['realm_' + key] = value;