Skip to content

Commit

Permalink
Move 404 and 500 images to local (github#17432)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr authored Jan 22, 2021
1 parent 96d2b9b commit 6ae9618
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 4 deletions.
Binary file added assets/images/site/labtocat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/site/waldocat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion layouts/error-404.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>{% data ui.errors.oops %}</h1>
</div>

<div class="col-md-8 col-lg-6 mx-auto">
<img src="https://octodex.github.com/images/waldocat.png" alt="waldocat">
<img src="/assets/images/site/waldocat.png" alt="waldocat">
</div>

<div class="col-lg-12 mt-6">
Expand Down
2 changes: 1 addition & 1 deletion layouts/error-500.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>{% data ui.errors.oops %}</h1>
<pre><code>{{ error.stack }}</code></pre>
{% endif %}

<img src="https://octodex.github.com/images/labtocat.png" alt="labtocat">
<img src="/assets/images/site/labtocat.png" alt="labtocat">
</article>
</div>

Expand Down
1 change: 0 additions & 1 deletion middleware/csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = async (req, res, next) => {
'data:',
'github.githubassets.com',
'github-images.s3.amazonaws.com',
'octodex.github.com',
'placehold.it',
'*.githubusercontent.com',
'github.com'
Expand Down
1 change: 0 additions & 1 deletion tests/rendering/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ describe('server', () => {

expect(csp.get('img-src').includes("'self'")).toBe(true)
expect(csp.get('img-src').includes('github-images.s3.amazonaws.com')).toBe(true)
expect(csp.get('img-src').includes('octodex.github.com')).toBe(true)

expect(csp.get('script-src').includes("'self'")).toBe(true)

Expand Down

0 comments on commit 6ae9618

Please sign in to comment.