       dirty: false
     for own key, value of additionalState
       state[key] = value
+    @_setWindowTitle metadata?.name
     @_setState state
     @_event type, {content: content.getText()}
 

    suffix = if queryString? then "?#{queryString}" else ""
    "#{document.location.origin}#{document.location.pathname}#{suffix}"

module.exports =
  CloudFileManagerClientEvent: CloudFileManagerClientEvent
  CloudFileManagerClient: CloudFileManagerClient

        @_setState shareProvider: provider
        break

    @appOptions.ui or= {}
    @appOptions.ui.windowTitlePrefix or= "#{document.title}: "
    @_setWindowTitle()

    @_ui.init @appOptions.ui

    # check for autosave
