mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-15 12:24:47 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fe93cd177 | ||
|
|
67fe570f6d |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sapper",
|
"name": "sapper",
|
||||||
"version": "0.0.18",
|
"version": "0.0.19",
|
||||||
"description": "Combat-ready apps, engineered by Svelte",
|
"description": "Combat-ready apps, engineered by Svelte",
|
||||||
"main": "connect.js",
|
"main": "connect.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ const app = {
|
|||||||
scroll_history[cid] = { x: 0, y: 0 };
|
scroll_history[cid] = { x: 0, y: 0 };
|
||||||
|
|
||||||
history.pushState({ id }, '', url.href);
|
history.pushState({ id }, '', url.href);
|
||||||
event.preventDefault();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
selected.route.load().then(mod => {
|
selected.route.load().then(mod => {
|
||||||
@@ -121,7 +120,9 @@ const app = {
|
|||||||
|
|
||||||
const scroll = scroll_state();
|
const scroll = scroll_state();
|
||||||
|
|
||||||
navigate(new URL(a.href), null);
|
if (navigate(new URL(a.href), null)) {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function preload(event) {
|
function preload(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user