import ko from "knockout" ; import ViewerApp from "./viewmodels/viewer-app" ; import "./bindings/menuButton" ; import "./bindings/swipePages" ; export default { start ( ) { function startViewer ( ) { ko . applyBindings ( new ViewerApp ( ) ) ; } if ( window [ "__loaded" ] ) startViewer ( ) ; else window . onload = startViewer ; } } ;