diff --git a/README.md b/README.md index 455bb63..032b33f 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ yarn add svelte-router import Welcome from './Welcome.html' import Animal from './Animal.html' + // import custom (browser) history + import history from './history' + const { createRouter, RouterLink } = SvelteRouter const router = createRouter({ @@ -58,7 +61,7 @@ yarn add svelte-router } } } - }) + }, history) export default { oncreate () { diff --git a/build/index.html b/build/index.html index 1a5d163..8b88c1e 100644 --- a/build/index.html +++ b/build/index.html @@ -10,6 +10,6 @@
- +