fix(doc): fix user extension example in index file (#727)

master
Nicolas Burger 2022-02-09 14:49:27 +01:00 committed by GitHub
parent d0b6fcaebf
commit 443f88648d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -20,11 +20,11 @@
<body style="margin:0">
<!-- svgedit container can be positionned anywhere in the DOM
but it must have a width and a height -->
<!--
<!--
<h1>SVGEdit</h1>
<div id="container" style="width:100%;height:550px"></div>
<h1>End</h1>
-->
-->
<div id="container" style="width:100%;height:100vh"></div>
</body>
<!-- If you do not wish to add extensions by URL, you can add calls
@ -38,7 +38,7 @@ svgEditor.setConfig({
allowInitialUserOverride: true,
extensions: [],
noDefaultExtensions: false,
userExtensions: [/* './react-extensions/react-test/dist/react-test.js' */]
userExtensions: [/* { pathName: './react-extensions/react-test/dist/react-test.js' } */]
})
// Variable XDOMAIN below is created by Rollup for the Xdomain build (see rollup.config.js)
/* globals XDOMAIN */
@ -52,4 +52,4 @@ try { // try clause to avoid js to complain if XDOMAIN undefined
}
} catch (error) { /* empty fn */ }
</script>
</html>
</html>