From e947627dba16456867fc4e341c399d4fc2ed30b6 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 16 Aug 2015 04:15:44 -0700 Subject: [PATCH] Make the error reporting link easier to configure. --- package.json | 1 + src/General/Main.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 772aaa5a6..906c8a1fc 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "license": "https://github.com/ccd0/4chan-x/blob/master/LICENSE", "changelog": "https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md", "issues": "https://gitreports.com/issue/ccd0/4chan-x", + "newIssue": "https://gitreports.com/issue/ccd0/4chan-x?issue_title=%title&details=%details", "appid": "lacclbnghgdicfifcamcmcnilckjamag", "chromeStoreID": "ohnjgmpcibpbafdlkimncjhflgedgpam", "recaptchaKey": "6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc", diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 2d6f54667..08184bf76 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -348,7 +348,7 @@ Main = #{data.error.stack?.replace(data.error.toString(), '').trim() or ''} """ details = details.replace /file:\/{3}.+\//g, '' # Remove local file paths - url = "<%= meta.issues %>?issue_title=#{encodeURIComponent title}&details=#{encodeURIComponent details}" + url = "<%= meta.newIssue.replace('%title', '#{encodeURIComponent title}').replace('%details', '#{encodeURIComponent details}') %>" <%= html(' [report]') %> isThisPageLegit: ->