mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
move all page info to app-level stores
This commit is contained in:
@@ -2,6 +2,11 @@ import * as sapper from '@sapper/app';
|
||||
|
||||
window.start = () => sapper.start({
|
||||
target: document.querySelector('#sapper')
|
||||
}).catch(err => {
|
||||
console.error(`OH NO! ${err.message}`);
|
||||
throw err;
|
||||
}).then(() => {
|
||||
console.log(`STARTED`);
|
||||
});
|
||||
|
||||
window.prefetchRoutes = () => sapper.prefetchRoutes();
|
||||
|
||||
Reference in New Issue
Block a user