Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

QR code to $GET url #23

Closed
b-gauthier opened this issue Apr 22, 2017 · 5 comments
Closed

QR code to $GET url #23

b-gauthier opened this issue Apr 22, 2017 · 5 comments

Comments

@b-gauthier
Copy link

Hi,

What i would like to do is to directly follow an url after scannig a qrcode :

ex : https://www.mydomain.com/page.html?qrcode=codejustscanned

What kind of changes I have to do in your script to do that ?

Thank you very much,

@gokulkrishh
Copy link
Member

gokulkrishh commented Apr 22, 2017

Hi @batgau71,

you will get the result in main.js line no 68. All you have to do is open your desired url using window.open with scanned code.

Hope this answers your question. Thanks

@b-gauthier
Copy link
Author

Perfect ! Thank you ! ;)

@gokulkrishh
Copy link
Member

@batgau71 Cool 👍

@ghost
Copy link

ghost commented Nov 21, 2018

Hi @gokulkrishh. Thank you for making this wonderful program. This is one of the best working solution on the internet for QR scanning using browser.
Could you please help me to understand what changes do I make in the web version (gh-pages) main.201113f887d44acdfa77.bundle.js file to redirect to the scanned URL, instead of showing the popup/snackbar.

@gokulkrishh
Copy link
Member

@hvarora Thanks.

Source: https://github.com/code-kotis/qr-code-scanner/blob/master/app/js/main.js#L92

In above line, scan method we get the result. There you have to do changes required to open or redirect the result if its URL.

You have edit the source and build the app to make it work.

And main.201113f887d44acdfa77.bundle.js is compiled & minified version to make changes in this file would be hard to find and do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants