Skip to content

Commit

Permalink
Add support for API version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Apr 29, 2024
1 parent c26b7ae commit da8053a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const App = () => {
}, []);

const fetchServerStatusState = useCallback(async () => {
const response = await fetch(STATUS_URL);
const response = await fetch(STATUS_URL, {cache: 'no-cache'});
if (!response.ok) {
// If even the status server is down, things are *very* not-okay. But odds
// are it can't be contacted because the user has a crappy internet
Expand Down
2 changes: 1 addition & 1 deletion api/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { sessionToken } from '../kv-storage/session-token';
import { Buffer } from "buffer";
import { NonNullImageCropperOutput } from '../components/image-cropper';

const SUPPORTED_API_VERSIONS = [3, 4];
const SUPPORTED_API_VERSIONS = [4, 5];

type ApiResponse = {
ok: boolean
Expand Down

0 comments on commit da8053a

Please sign in to comment.