 
     # check the providers
     availableProviders = []
+    shareProvider = null
     for provider in @appOptions.providers
       [providerName, providerOptions] = if isString provider then [provider, {}] else [provider.name, provider]
       # merge in other options as needed

          Provider = allProviders[providerName]
          provider = new Provider providerOptions, @
          @providers[providerName] = provider
          if provider.urlDisplayName        # also add to here in providers list so we can look it up when parsing url hash
            @providers[provider.urlDisplayName] = provider
          availableProviders.push provider

          @alert "Unknown provider: #{providerName}"
    @_setState
      availableProviders: availableProviders
      shareProvider: shareProvider

    @appOptions.ui or= {}
    @appOptions.ui.windowTitleSuffix or= document.title
