[appSwitcher] compare to the href of the clicked element, not necessarily the apps url

This commit is contained in:
spalger 2015-09-22 18:47:01 -07:00
parent a3fdda4b74
commit 72a610078f

View file

@ -29,7 +29,7 @@ require('ui/modules')
return;
}
var toParsed = parse(app.url);
var toParsed = parse(event.delegateTarget.href);
var fromParsed = parse(domLocation.href);
var sameProto = toParsed.protocol === fromParsed.protocol;
var sameHost = toParsed.host === fromParsed.host;