From bfbf8cd16480d357e548e8576d28b79cbd5c40a5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 8 Apr 2016 06:52:12 +0200 Subject: [PATCH] Trigger title change for electron integration. --- .../app/controllers/_application_controller.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.coffee b/app/assets/javascripts/app/controllers/_application_controller.coffee index 268a38505..a27118268 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.coffee @@ -88,7 +88,9 @@ class App.Controller extends Spine.Controller title = name if translate title = App.i18n.translatePlain(name) - document.title = @Config.get('product_name') + ' - ' + title + documentTitle = "#{@Config.get('product_name')} - #{title}" + document.title = documentTitle + App.Event.trigger('window-title-set', documentTitle) copyToClipboard: (text) -> if window.clipboardData # IE