Make the error reporting link easier to configure.
This commit is contained in:
parent
429bf49d97
commit
e947627dba
@ -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",
|
||||
|
||||
@ -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: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user