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
* Chrome requires [HTTPS or localhost](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins) (see _Troubleshooting_ for help)
90
-
* Safari also requires HTTPS **even** on localhost (see [#48](../../issues/48))
91
-
* on iOS it **only** works with Safari
92
-
**Chrome for iOS*, *Firefox for iOS* and so on are not supported (see [#29](../../issues/29))
93
-
* even web apps added to home screen are not supported (see [#76](../../issues/76))
97
+
- Chrome requires [HTTPS or localhost](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins) (see _Troubleshooting_ for help)
98
+
- Safari also requires HTTPS **even** on localhost (see [#48](../../issues/48))
99
+
- on iOS it **only** works with Safari
100
+
-_Chrome for iOS_, _Firefox for iOS_ and so on are not supported (see [#29](../../issues/29))
101
+
- even web apps added to home screen are not supported (see [#76](../../issues/76))
94
102
95
103
#### `QrcodeDropZone` and `QrcodeCapture`
96
104
97
105
The newest API these components depend on is the [FileReader API](https://caniuse.com/#feat=filereader).
* I don't see the camera when using `QrcodeStream`.
108
-
* Check if it works on the demo page. Especially the [Decode All](https://gruhn.github.io/vue-qrcode-reader/demos/DecodeAll.html) demo, since it renders error messages. If you see errors, consult the docs to understand their meaning.
109
-
* Demo works but not locally: Listen for the `init` event to investigate errors.
110
-
* Demo doesn't work: Carefully review the Browser Support section above. Maybe your device is just not supported.
111
-
* I'm running a dev server on localhost. How to test on my mobile device without HTTPS?
112
-
* If your setup is Desktop Chrome + Android Chrome, use [Remote Debugging](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/) which allows your Android device to [access your local server as localhost](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/local-server).
113
-
* Otherwise use a reverse proxy like [ngrok](https://ngrok.com/) or [serveo](https://serveo.net/) to temporarily make your local server publicly available with HTTPS.
115
+
- I don't see the camera when using `QrcodeStream`.
116
+
- Check if it works on the demo page. Especially the [Decode All](https://gruhn.github.io/vue-qrcode-reader/demos/DecodeAll.html) demo, since it renders error messages. If you see errors, consult the docs to understand their meaning.
117
+
- Demo works but not locally: Listen for the `init` event to investigate errors.
118
+
- Demo doesn't work: Carefully review the Browser Support section above. Maybe your device is just not supported.
119
+
- I'm running a dev server on localhost. How to test on my mobile device without HTTPS?
120
+
- If your setup is Desktop Chrome + Android Chrome, use [Remote Debugging](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/) which allows your Android device to [access your local server as localhost](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/local-server).
121
+
- Otherwise use a reverse proxy like [ngrok](https://ngrok.com/) or [serveo](https://serveo.net/) to temporarily make your local server publicly available with HTTPS.
Or alternatively register all of them globally right away:
146
155
147
156
```javascript
148
-
importVuefrom'vue'
149
-
importVueQrcodeReaderfrom'vue-qrcode-reader'
157
+
importVuefrom"vue";
158
+
importVueQrcodeReaderfrom"vue-qrcode-reader";
150
159
151
-
Vue.use(VueQrcodeReader)
160
+
Vue.use(VueQrcodeReader);
152
161
```
153
162
154
163
**⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.**
@@ -158,15 +167,16 @@ Vue.use(VueQrcodeReader)
158
167
> All the examples on the demo page utilize [single-file components](https://vuejs.org/v2/guide/single-file-components.html). To use them in your project you need a build tool like webpack. Check out [this fiddle](https://jsfiddle.net/2bfohnax/) for a simpler example you can use right in the browser.
159
168
160
169
Besides Vue you need to include the following CSS and JS file:
0 commit comments