From 923c5fcd04ec3f3ac62d91aa9d1696546ba03b73 Mon Sep 17 00:00:00 2001 From: trading_peter Date: Sat, 12 Mar 2022 23:37:34 +0100 Subject: [PATCH] Fix typo --- package.json | 2 +- tp-router.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8c6053a..f20c2eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-router", - "version": "1.0.1", + "version": "1.0.2", "description": "", "main": "tp-router.js", "scripts": { diff --git a/tp-router.js b/tp-router.js index 3cb0df2..1f06db8 100644 --- a/tp-router.js +++ b/tp-router.js @@ -131,7 +131,7 @@ export class TpRouter extends LitElement { const routes = this._slottedChildren; routes.forEach(routeEl => { - if (routeEl.nodeName === 'tp-ROUTE') { + if (routeEl.nodeName === 'TP-ROUTE') { this.add(routeEl.path, routeEl.data, routeEl.namespace, routeEl.redirect); } });