From c028011628c684c4f2f51637ff80b2e7f609df6a Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 2 Jul 2024 09:15:09 -0500 Subject: gtd: bug fix --- app/gtd/templates/gtd/deal_code.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/gtd') 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)"; -- cgit v1.2.3-70-g09d2