Remove unneeded escaping.

This commit is contained in:
ccd0 2015-03-28 15:06:45 -07:00
parent 20b5dac267
commit 1c81838a91
5 changed files with 6 additions and 9 deletions

View File

@ -5,9 +5,6 @@ doc = d.documentElement
g =
VERSION: '<%= meta.version %>'
NAMESPACE: '<%= meta.name %>.'
NAME: '<%= meta.name %>'
FAQ: '<%= meta.faq %>'
CHANGELOG: '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
boards: {}
E = do ->

View File

@ -508,8 +508,8 @@ Header =
el = $.el 'span',
<%= html(
'${g.NAME} needs your permission to show desktop notifications. ' +
'[<a href="${g.FAQ}#why-is-4chan-x-asking-for-permission-to-show-desktop-notifications" target="_blank">FAQ</a>]<br>' +
meta.name + ' needs your permission to show desktop notifications. ' +
'[<a href="' + meta.faq + '#why-is-4chan-x-asking-for-permission-to-show-desktop-notifications" target="_blank">FAQ</a>]<br>' +
'<button>Authorize</button> or <button>Disable</button>'
) %>
[authorize, disable] = $$ 'button', el

View File

@ -168,7 +168,7 @@ Main =
return if previousversion is g.VERSION
if previousversion
el = $.el 'span',
<%= html('${g.NAME} has been updated to <a href="${g.CHANGELOG}" target="_blank">version ${g.VERSION}</a>.') %>
<%= html(meta.name + ' has been updated to <a href="' + meta.repo + 'blob/' + meta.mainBranch + '/CHANGELOG.md" target="_blank">version ' + meta.version + '</a>.') %>
new Notice 'info', el, 15
else
Settings.open()

View File

@ -48,8 +48,8 @@ $.ajax = do ->
blockedURLs[url] = true
message = $.el 'div',
<%= html(
'${g.NAME} was blocked from loading the following URL:<br><span></span><br>' +
'[<a href="${g.FAQ}#why-was-4chan-x-blocked-from-loading-a-url" target="_blank">More info</a>]'
meta.name + ' was blocked from loading the following URL:<br><span></span><br>' +
'[<a href="' + meta.faq + '#why-was-4chan-x-blocked-from-loading-a-url" target="_blank">More info</a>]'
) %>
$('span', message).textContent = (if /^\/\//.test url then location.protocol else '') + url
new Notice 'error', message, 30, -> delete blockedURLs[url]

View File

@ -625,7 +625,7 @@ QR =
<%= html(
meta.name + ' encountered an error while posting. ' +
'[<a href="//4chan.org/banned" target="_blank">Banned?</a>] ' +
'[<a href="${g.FAQ}#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target="_blank">More info</a>]'
'[<a href="' + meta.faq + '#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target="_blank">More info</a>]'
) %>
extra =
form: $.formData formData