mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
14 lines
352 B
JavaScript
14 lines
352 B
JavaScript
import { init, goto, prefetchRoutes } from '../../../runtime.js';
|
|
import { Store } from 'svelte/store.js';
|
|
import { manifest } from './manifest/client.js';
|
|
|
|
window.init = () => {
|
|
return init({
|
|
target: document.querySelector('#sapper'),
|
|
manifest,
|
|
store: data => new Store(data)
|
|
});
|
|
};
|
|
|
|
window.prefetchRoutes = prefetchRoutes;
|
|
window.goto = goto; |