Trigger title change for electron integration.

This commit is contained in:
Martin Edenhofer 2016-04-08 06:52:12 +02:00
parent 36cdf561d9
commit bfbf8cd164

View file

@ -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