Fix package injected to fedmenu on pkgs.fp.o

Fedmenu is used to link other package related services. On pkgs.fp.o
constant "rpms" is used instead of package name.

Signed-off-by: Marian Csontos <mcsontos@redhat.com>
This commit is contained in:
Marian Csontos 2016-12-20 10:45:37 +01:00 committed by Pierre-Yves Chibon
parent 376b5d1098
commit de3af0e0d0

View file

@ -14,8 +14,8 @@
{% endif %}
var tokens = window.location.href.split('/');
var repo = null;
if (tokens.length > 4 && tokens[4] != '') {
repo = tokens[4].split('.')[0];
if (tokens.length > 5 && tokens[4] == 'rpms' && tokens[5] != '') {
repo = tokens[5].split('.')[0];
}
fedmenu({
'url': base + 'js/data.js',