return a promise from init - fixes #99

This commit is contained in:
Rich Harris
2018-01-20 19:49:41 -05:00
parent 4590aa313c
commit a09c33d6a5
4 changed files with 49 additions and 44 deletions

View File

@@ -1,6 +1,5 @@
import { init } from '../../../runtime.js';
window.init = () => {
init(document.querySelector('#sapper'), __routes__);
window.READY = true;
return init(document.querySelector('#sapper'), __routes__);
};