You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ It might take a while before the component is ready and the scanning process sta
82
82
83
83
If you want to show a loading indicator, you can listen for the `init` event. It's emitted as soon as the component is mounted and carries a promise which resolves when everything is ready. The promise is rejected if initialization fails. This can have [a couple of reasons](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Exceptions).
84
84
85
-
:point_right: In Chrome you can't prompt users for permissions a second time. Once denied, users can only manually grant them. Make sure your users understand why you need access to their camera **before** you mount this component. Otherwise they might panic and deny and then get frustrated because they don't know how to change their decision.
85
+
>In Chrome you can't prompt users for permissions a second time. Once denied, users can only manually grant them. Make sure your users understand why you need access to their camera **before** you mount this component. Otherwise they might panic and deny and then get frustrated because they don't know how to change their decision.
86
86
87
87
```html
88
88
<qrcode-reader@init="onInit"></qrcode-reader>
@@ -123,7 +123,7 @@ By default detected QR codes are visually highlighted. A transparent canvas over
123
123
124
124
You can also pass a function with `track` to customize the way the location is painted. This function is called to produce each frame. It receives the location object as the first argument and a `CanvasRenderingContext2D` instance as the second argument.
125
125
126
-
:point_right: Avoid access to reactive properties in this function (like stuff in `data`, `computed` or your Vuex store). The function is called several times a second and might cause memory leaks. If you want to be save don't access `this` at all.
126
+
>Avoid access to reactive properties in this function (like stuff in `data`, `computed` or your Vuex store). The function is called several times a second and might cause memory leaks. If you want to be save don't access `this` at all.
127
127
128
128
Say you want to paint in a different color that better fits your overall page theme.
129
129
@@ -157,7 +157,7 @@ methods: {
157
157
}
158
158
```
159
159
160
-
### Distributed content
160
+
### default slot
161
161
162
162
Distributed content will overlay the camera stream, wrapped in a `position: absolute` container.
163
163
@@ -210,7 +210,7 @@ You can change the `video` part using the `video-constraints` prop. Note that yo
0 commit comments