diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-24 07:45:13 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-24 07:45:13 +0800 |
commit | 02091486094dcc818096ce13a22cdc140a2e8347 (patch) | |
tree | a7b9ae20bfcd309b91ca443d944d2c8cf2200be6 | |
parent | 0940ecd57b6efbf76171579ffe72dfd8a683f5be (diff) | |
download | tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.tar tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.tar.gz tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.tar.bz2 tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.tar.lz tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.tar.xz tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.tar.zst tangerine-wallet-browser-02091486094dcc818096ce13a22cdc140a2e8347.zip |
fixes
-rw-r--r-- | app/scripts/inpage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index 1fafe7813..1a7bea7c0 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -102,10 +102,10 @@ function initCameraScanner () { // Append preview div const preview = document.createElement('div') preview.id = 'metamask-preview-wrapper' - preview.style = 'position:absolute; top: 20px; left: 20px; z-indez: 99999999999999; width: 300px; height: 300px; overflow: hidden' + preview.style = 'position:absolute; top: 20px; left: 20px; width: 300px; height: 300px; overflow: hidden; z-index: 999999999;' const previewVideo = document.createElement('video') previewVideo.id = 'metamask-preview-video' - previewVideo.style = 'width: 100%; height: 100%; object-fit: none; margin-left: -10%; margin-top: 10%' + previewVideo.style = 'width: 100%; height: 100%; object-fit: none; margin-left: -10%; margin-top: 10%;' preview.appendChild(previewVideo) document.body.appendChild(preview) console.log('injected') @@ -122,7 +122,7 @@ function initCameraScanner () { }) Instascan.Camera.getCameras().then(function (cameras) { if (cameras.length > 0) { - scanner.start(cameras[1]) + scanner.start(cameras[0]) } else { console.error('No cameras found.') } |