Include Platform change in sdk docs

This commit is contained in:
RMidhunSuresh 2022-04-27 12:28:48 +05:30
parent 049a477008
commit c07a42292c

View file

@ -53,7 +53,7 @@ import "hydrogen-view-sdk/theme-element-light.css";
async function main() {
const app = document.querySelector<HTMLDivElement>('#app')!
const config = {};
const platform = new Platform(app, assetPaths, config, { development: import.meta.env.DEV });
const platform = new Platform({container: app, assetPaths, config, options: { development: import.meta.env.DEV }});
const navigation = createNavigation();
platform.setNavigation(navigation);
const urlRouter = createRouter({