Make the error reporting link easier to configure.

This commit is contained in:
ccd0 2015-08-16 04:15:44 -07:00
parent 429bf49d97
commit e947627dba
2 changed files with 2 additions and 1 deletions

View File

@ -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",

View File

@ -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(' [<a href="${url}" target="_blank">report</a>]') %>
isThisPageLegit: ->