Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into onrender
Browse files Browse the repository at this point in the history
  • Loading branch information
yeaktas committed Apr 20, 2024
2 parents 88fc27f + b56e9ed commit 2d31f3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Build and Push

on:
push:
branches: [ "main" ]
branches: [ "onrender" ]

jobs:

Expand Down
2 changes: 1 addition & 1 deletion indianpong/pong/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% block app %}
<div class="HeaderArea" id="HeaderArea">
<div class="big-text">{{context.notFoundHeaderText}}</div>
<div class="big-text">404 ERROR</div>
<div class="small-text">{{context.notFoundSubHeaderText}}</div>
<div class="gohome-button-container">
<a onclick="swapApp('/')"><button class="gohome-button" type="button">
Expand Down
4 changes: 3 additions & 1 deletion indianpong/static/js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function updateApp(path) {
.then(response => response.text())
.then(html => {
document.body.innerHTML = html;
pageHandler(path);
if (!html.includes('<div class="big-text">404 ERROR</div>')) {
pageHandler(path);
}
hideLoadingScreen();
})
.catch(error => console.error(error));
Expand Down

0 comments on commit 2d31f3a

Please sign in to comment.