Skip to content

Commit

Permalink
10.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 6, 2024
1 parent adbcb1a commit 2509f8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions appcache
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dist/vue.min.js
dist/axios.min.js
dist/easy.qrcode.min.js
dist/nanocurrency.min.js
dist/style.css?v=10.1.9
dist/app.js?v=10.1.9
dist/style.css?v=10.2.0
dist/app.js?v=10.2.0
5 changes: 3 additions & 2 deletions dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ var nano = new Vue({
}
}
this.checkout = res.data
if (res.data.block) return this.show_success(res.data.block, 'Checkout Complete')
if (path) history.pushState({}, null, `/${path}`);
document.title = `${res.data.title ? res.data.title : '#' + path.split('_')[1] + ' - Nano Checkout' }`
if (res.data.favicon) document.querySelector("link[rel*='icon']").href = res.data.favicon;
Expand Down Expand Up @@ -860,14 +861,14 @@ var nano = new Vue({
}
})
},
show_success(block) {
show_success(block, message) {
var query = this.queryToObject()
redirect = query.redirect || query.success || this.checkout.success_url
this.success = {
block,
confetti: true,
title: this.checkout.goal ? this.checkout.goal.title : 'Success',
message: this.checkout.goal ? (this.strings[this.lang] ? this.strings[this.lang].donated : this.strings['en'].donated) : (this.strings[this.lang] ? this.strings[this.lang].payment_send : this.strings['en'].payment_send),
message: message || (this.checkout.goal ? (this.strings[this.lang] ? this.strings[this.lang].donated : this.strings['en'].donated) : (this.strings[this.lang] ? this.strings[this.lang].payment_send : this.strings['en'].payment_send)),
redirect: this.checkout.goal ? false : redirect,
}
if (this.checkout.goal) {
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<meta property="twitter:image" content="../../dist/images/cover.png">
<link rel="apple-touch-icon" href="../../dist/images/new_icon.png">
<link rel="icon" type="image/png" href="../../dist/favicon.png">
<link rel="stylesheet" href="../../dist/style.css?v=10.1.9">
<link rel="stylesheet" href="../../dist/big-picture.css?v=10.1.9">
<link rel="stylesheet" href="../../dist/style.css?v=10.2.0">
<link rel="stylesheet" href="../../dist/big-picture.css?v=10.2.0">
<link rel="manifest" href="../../dist/manifest.json">
<script>
function queryToObject(string) {
Expand Down Expand Up @@ -355,6 +355,6 @@ <h1 v-if="!checkout.amount" :style="`color:${checkout.color && checkout.color.te
<script src="../../dist/axios.min.js"></script>
<script src="../../dist/easy.qrcode.min.js"></script>
<script src="../../dist/nanocurrency.min.js"></script>
<script src="../../dist/app.js?v=10.1.9"></script>
<script src="../../dist/app.js?v=10.2.0"></script>
</body>
</html>

0 comments on commit 2509f8d

Please sign in to comment.