summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-07-02 09:26:04 -0500
committerluxagraf <sng@luxagraf.net>2024-07-02 09:26:04 -0500
commit9c9ac1128b3a2256402263549ed922bada7d743c (patch)
tree4fe139d3fdeaae6a82467e5f1097cb79dbab4ba4 /app
parent6f42bd349b89b7fd34266ea4cddb4017995fe862 (diff)
gtd: I am bad at javascript
Diffstat (limited to 'app')
-rw-r--r--app/gtd/templates/gtd/deal_code.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/gtd/templates/gtd/deal_code.html b/app/gtd/templates/gtd/deal_code.html
index 085f921..a54a1ed 100644
--- a/app/gtd/templates/gtd/deal_code.html
+++ b/app/gtd/templates/gtd/deal_code.html
@@ -44,12 +44,12 @@ body {
<script>
var url = new URL(document.location);
var params = new URLSearchParams(url.search);
-if params.has("sale"){
+if(params.has("sale")){
var sale = params.get("sale");
} else {
var sale = "tk";
}
-if params.has("price"){
+if(params.has("price")){
var price = params.get("price").substring(1);
} else {
var price = "tk";