Skip to content

Commit

Permalink
configurable title
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Feb 14, 2024
1 parent c859586 commit 9c721ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions latest.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
tax: config.strings && config.strings.tax ? config.strings.tax : 'Sales Tax',
subtotal: config.strings && config.strings.subtotal ? config.strings.subtotal : 'Subtotal',
button: config.strings && config.strings.button ? config.strings.button : 'Pay with Nano',
title: config.strings && config.strings.title ? config.strings.title : 'Pay',
}

// looks better
Expand Down Expand Up @@ -378,7 +379,7 @@
<div id="nano-pay-header-container">
<div id="nano-pay-header">
<img src="https://pay.nano.to/img/xno.svg">
<span>Pay</span>
<span>${strings.title}</span>
</div>
<div id="nano-pay-cancel" onclick="window.NanoPay.cancel(); return">Cancel</div>
Expand Down Expand Up @@ -615,4 +616,4 @@

})();

if (document.querySelectorAll('[data-amount]').length) window.NanoPay.init()
if (document.querySelectorAll('[data-amount]').length) window.NanoPay.init()

0 comments on commit 9c721ed

Please sign in to comment.