Skip to content

Commit

Permalink
Fix issues with renderPath
Browse files Browse the repository at this point in the history
  • Loading branch information
CMEONE committed Mar 4, 2021
1 parent 6171205 commit e29914d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tApp.config = {
};

tApp.route("/", function(request) {
tApp.render("#/");
tApp.redirect("#/");
});

tApp.route("#/index", function(request) {
Expand Down
2 changes: 1 addition & 1 deletion tApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class tApp {
if(path == null) {
throw "tAppError: No path specified for rendering."
}
updatePage(path);
tApp.updatePage(path);
}
static updatePage(hash) {
if(hash == null || hash == "") {
Expand Down

0 comments on commit e29914d

Please sign in to comment.