diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-09-09 16:54:36 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-09-09 16:54:36 -0400 |
| commit | 96762ebf0980bef4aee29beece585bc99ea02ec7 (patch) | |
| tree | 3580bec1c6a76105829c0477059c1e3b5c2bd43a /js | |
| parent | 702d3b8ec1ce06cbe2300d65c1e3f608b5f8f361 (diff) | |
| parent | f327d20deb08d948829d2c2214af3cc3ac254456 (diff) | |
| download | monzero-gui-96762ebf0980bef4aee29beece585bc99ea02ec7.tar.gz monzero-gui-96762ebf0980bef4aee29beece585bc99ea02ec7.tar.xz monzero-gui-96762ebf0980bef4aee29beece585bc99ea02ec7.zip | |
Merge pull request #3687
f327d20 qml: use libwalletqt make_uri function (selsta)
dcc16a4 libwalletqt: add make_uri function (selsta)
Diffstat (limited to 'js')
| -rw-r--r-- | js/TxUtils.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/js/TxUtils.js b/js/TxUtils.js index 42a5d449..63405338 100644 --- a/js/TxUtils.js +++ b/js/TxUtils.js @@ -73,30 +73,3 @@ function isValidOpenAliasAddress(address) { // we can get an awful lot of valid domains, including non ASCII chars... accept anything return true } - -function makeQRCodeString(addr, amount, txDescription, recipientName) { - var XMR_URI_SCHEME = "monero:" - var XMR_AMOUNT = "tx_amount" - var XMR_RECIPIENT_NAME = "recipient_name" - var XMR_TX_DESCRIPTION = "tx_description" - var qrCodeString ="" - qrCodeString += (XMR_URI_SCHEME + addr) - if (amount !== undefined && amount !== ""){ - qrCodeString += ("?" + XMR_AMOUNT + "=" + amount) - } - if (txDescription !== undefined && txDescription !== ""){ - if (amount == ""){ - qrCodeString += ("?" + XMR_TX_DESCRIPTION + "=" + encodeURI(txDescription)) - } else { - qrCodeString += ("&" + XMR_TX_DESCRIPTION + "=" + encodeURI(txDescription)) - } - } - if (recipientName !== undefined && recipientName !== ""){ - if (amount == "" && txDescription == ""){ - qrCodeString += ("?" + XMR_RECIPIENT_NAME + "=" + encodeURI(recipientName)) - } else { - qrCodeString += ("&" + XMR_RECIPIENT_NAME + "=" + encodeURI(recipientName)) - } - } - return qrCodeString -} |
