Compare commits

...

2 Commits

Author SHA1 Message Date
Rich Harris
0fe93cd177 -> v0.0.19 2017-12-15 18:27:04 -05:00
Rich Harris
67fe570f6d dont try to prevent event where none exists 2017-12-15 18:26:55 -05:00
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "sapper",
"version": "0.0.18",
"version": "0.0.19",
"description": "Combat-ready apps, engineered by Svelte",
"main": "connect.js",
"directories": {

View File

@@ -77,7 +77,6 @@ const app = {
scroll_history[cid] = { x: 0, y: 0 };
history.pushState({ id }, '', url.href);
event.preventDefault();
}
selected.route.load().then(mod => {
@@ -121,7 +120,9 @@ const app = {
const scroll = scroll_state();
navigate(new URL(a.href), null);
if (navigate(new URL(a.href), null)) {
event.preventDefault();
}
});
function preload(event) {