mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 21:24:59 +00:00
add hydration test, add window.init function to make it possible
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { init } from '../../../runtime.js';
|
||||
|
||||
// `routes` is an array of route objects injected by Sapper
|
||||
init(document.querySelector('#sapper'), __routes__);
|
||||
|
||||
window.READY = true;
|
||||
window.init = () => {
|
||||
init(document.querySelector('#sapper'), __routes__);
|
||||
window.READY = true;
|
||||
};
|
||||
Reference in New Issue
Block a user