summaryrefslogtreecommitdiff
path: root/app/gtd
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-07-02 09:15:09 -0500
committerluxagraf <sng@luxagraf.net>2024-07-02 09:15:09 -0500
commitc028011628c684c4f2f51637ff80b2e7f609df6a (patch)
treea1c9cf4913e97f5f314427927d950001162fe566 /app/gtd
parent1a6b0224bcd2cd5b13a8b09c38a998ffde0ca4a1 (diff)
gtd: bug fix
Diffstat (limited to 'app/gtd')
-rw-r--r--app/gtd/templates/gtd/deal_code.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/gtd/templates/gtd/deal_code.html b/app/gtd/templates/gtd/deal_code.html
index 1766145..b4df7f5 100644
--- a/app/gtd/templates/gtd/deal_code.html
+++ b/app/gtd/templates/gtd/deal_code.html
@@ -54,7 +54,8 @@ if params.has("price"){
} else {
var price = "tk";
}
-var str = "####"+" ["+params.get("title")+" for"+sale+" ("+price+" off)]("+params.get("url")+")\n\n+++button-group\n\n[REI]("+params.get("url")+" \"REI\"){: target=\"_blank\"}\n\n+++";
+let prms = new URL(document.location).searchParams;
+var str = "####"+" ["+prms.get("title")+" for"+sale+" ("+price+" off)]("+prms.get("url")+")\n\n+++button-group\n\n[REI]("+prms.get("url")+" \"REI\"){: target=\"_blank\"}\n\n+++";
function setText() {
var el = document.getElementById('link');
el.innerHTML = params.get("title") + " for $tk ($tk off)";