diff --git a/src/components/getRoute.js b/src/components/getRoute.js index c427006..d31a6e1 100644 --- a/src/components/getRoute.js +++ b/src/components/getRoute.js @@ -4,7 +4,7 @@ window.hubl.getRoute = (type, returnFirst = false) => { if (c.extensions) { c.extensions.forEach(e => { if (e.type == type || e.uniq == type) { - availables.push(e.type); + availables.push(e); } }); } diff --git a/src/hubl-router.pug b/src/hubl-router.pug index 8e1bf95..a9a13e8 100644 --- a/src/hubl-router.pug +++ b/src/hubl-router.pug @@ -16,7 +16,7 @@ if (c.extensions) { c.extensions.forEach(e => { if (e.type == type || e.uniq == type) { - availables.push(e.type); + availables.push(e); } }); }