Skip to content

Commit

Permalink
Fix .ico and revert to secure
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkinSolomon committed Mar 27, 2024
1 parent 58c2c2b commit 4753cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import StopwatchTimer from './stopwatchTimer';
import TrackView from './trackView';
import LinearGauge from './linearGauge';

//const DATA_SOURCE = 'http://judas.arkinsolomon.net';
const DATA_SOURCE = window.location.hostname === 'localhost' ? 'http://localhost:8080' : 'http://judas.arkinsolomon.net';
//const DATA_SOURCE = 'https://judas.arkinsolomon.net';
const DATA_SOURCE = window.location.hostname === 'localhost' ? 'http://localhost:8080' : 'https://judas.arkinsolomon.net';

export default class App extends Component<Record<string, string>, AppState> {
private _socket?: Socket;
Expand Down
2 changes: 2 additions & 0 deletions upload-display.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ for EXT in $EXTENSIONS; do
MIME_TYPE="text/css"
elif [ "$EXT" = "js" ]; then
MIME_TYPE="application/javascript"
elif [ "$EXT" = "ico" ]; then
MIME_TYPE="image/x-icon"
else
TEST_FILE=$(find . -type f -iname "*.$EXT" | head -1)
MIME_TYPE=$(file -b --mime-type "$TEST_FILE")
Expand Down

0 comments on commit 4753cdf

Please sign in to comment.