Skip to content

Commit

Permalink
Refactor app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FrinkMan committed Nov 25, 2018
1 parent cd2edb9 commit 2032c8a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
((() => {
function init() {
const router = new Router([
new Route('home', 'home.html', true),
new Route('about', 'about.html')
]);
}
init();
})());
function init() {
new Router([
new Route('home', 'home.html', true),
new Route('about', 'about.html')
]);
}
init();

0 comments on commit 2032c8a

Please sign in to comment.