diff options
author | Sheogorath | 2018-06-24 14:13:38 +0200 |
---|---|---|
committer | Sheogorath | 2018-06-24 14:13:46 +0200 |
commit | 2184491f4ac4b224e26fcc4b54d792dd4e82178f (patch) | |
tree | d93e6a6574ad972a27b372fc12e0539b57ca8868 /lib | |
parent | 97a08e7954af01719bb2519e863fdf5990d4d56f (diff) |
Final replacements
Looks like I missed a few. This should be complete now. And make us
ready for the repo rename and merging.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | lib/csp.js | 2 | ||||
-rw-r--r-- | lib/response.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ var CspStrategy = {} var defaultDirectives = { defaultSrc: ['\'self\''], scriptSrc: ['\'self\'', 'vimeo.com', 'https://gist.github.com', 'www.slideshare.net', 'https://query.yahooapis.com', '\'unsafe-eval\''], - // ^ TODO: Remove unsafe-eval - webpack script-loader issues https://github.com/hackmdio/hackmd/issues/594 + // ^ TODO: Remove unsafe-eval - webpack script-loader issues https://github.com/hackmdio/codimd/issues/594 imgSrc: ['*'], styleSrc: ['\'self\'', '\'unsafe-inline\'', 'https://assets-cdn.github.com'], // unsafe-inline is required for some libs, plus used in views fontSrc: ['\'self\'', 'https://public.slidesharecdn.com'], diff --git a/lib/response.js b/lib/response.js index 252208b9..3a31c511 100644 --- a/lib/response.js +++ b/lib/response.js @@ -527,7 +527,7 @@ function githubActionGist (req, res, note) { request({ url: gistUrl, headers: { - 'User-Agent': 'HackMD', + 'User-Agent': 'CodiMD', 'Authorization': 'token ' + accessToken }, method: 'POST', |