aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send.component.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-01 06:30:40 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-01 06:30:56 +0800
commit710b4e294f66fe6e623fa145cc99be5b79c8210e (patch)
tree94fbe1f5d91aef33d04effc254a2a77e217c308a /ui/app/components/send/send.component.js
parentedb154749d468299166e41e56d23beb781817cbc (diff)
downloadtangerine-wallet-browser-710b4e294f66fe6e623fa145cc99be5b79c8210e.tar.gz
tangerine-wallet-browser-710b4e294f66fe6e623fa145cc99be5b79c8210e.tar.zst
tangerine-wallet-browser-710b4e294f66fe6e623fa145cc99be5b79c8210e.zip
added crossbrowser support and error handling
Diffstat (limited to 'ui/app/components/send/send.component.js')
-rw-r--r--ui/app/components/send/send.component.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/send/send.component.js b/ui/app/components/send/send.component.js
index 8305a288e..80b50fad4 100644
--- a/ui/app/components/send/send.component.js
+++ b/ui/app/components/send/send.component.js
@@ -179,6 +179,11 @@ export default class SendTransactionScreen extends PersistentForm {
// Show QR Scanner modal if ?scan=true
if (window.location.search === '?scan=true') {
this.props.scanQrCode()
+
+ // Clear the queryString param after showing the modal
+ const cleanUrl = location.href.split('?')[0]
+ history.pushState({}, null, `${cleanUrl}`)
+ window.location.hash = '#send'
}
}