@magiclabs.ai/magicbook-client 0.7.10-canary → 0.7.11-canary
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,14 +122,19 @@ await designRequest.logEvent('book.viewed', data)
|
|
|
122
122
|
|
|
123
123
|
## Usage as script
|
|
124
124
|
|
|
125
|
+
For example using express convert to static route
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
app.use('/scripts/magicbook-client', express.static(__dirname + '/node_modules/@magiclabs.ai/magicbook-client'))
|
|
129
|
+
```
|
|
130
|
+
|
|
125
131
|
```html
|
|
126
132
|
<!doctype html>
|
|
127
133
|
<html>
|
|
128
134
|
<head>
|
|
129
135
|
<script
|
|
130
136
|
type="text/javascript"
|
|
131
|
-
src="
|
|
132
|
-
/index.iife.js"
|
|
137
|
+
src="/scripts/magicbook-client/index.iife.js"
|
|
133
138
|
></script>
|
|
134
139
|
</head>
|
|
135
140
|
<script type="text/javascript">
|