opening app from another window/link hangs the app

issue:
opening an app that uses torii from another window/link (with `target="_blank"`) causes the app to hang (waiting for `application.advanceReadiness`).. It mistakenly thinks the app is a popup since `window.opener` isn't `null` 

A possible sol'n is to also check whether `window.name !== ""` 
Because torii appears to name the window when it opens a popup, checking if a name doesn't exist could be a good way to indicate that the app isn't in a popup triggered by torii

you can see a repro just by adding `target="_blank"` to this this `href`:
http://vestorly.github.io/torii/demo.html
Would setting and checking something else work? e.g. `window.torii = true;`

On Friday, August 15, 2014, Joseph Bartels <notifications@github.com> wrote:

> In lib/torii/redirect-handler.js:
>
> > @@ -15,7 +15,7 @@ var RedirectHandler = Ember.Object.extend({
> >    run: function(){
> >      var url = this.url;
> >      return new Ember.RSVP.Promise(function(resolve, reject){
> > -      if (!window.opener) {
> > +      if (!window.opener || window.name === "") {
>
> @mixonic <https://github.com/mixonic> Facebook sets name on the popup
> (e.g. _e_0rfm) even if a name is provided from window.open
> A slightly intrusive alternative:
>
>    - save main app's window.name, or set it if none exists then always
>    return a rejected promise from redirectHandler.run when name matches
>    main app's window.name
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Vestorly/torii/pull/58/files#r16322384>.
>