Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
fix: why tf translations use API url
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Sep 10, 2024
1 parent 4f47725 commit 303fd2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/ui/localization.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import $ from "jquery";
import english from "../../public/l10n/en.json";
import { api } from "../api";
import { device } from "../device";

function downloadFile(
file: string,
onComplete: (err: null | JQuery.jqXHR<any>, data?: Record<string, string>) => void,
) {
const opts = {
url: api.resolveUrl(file),
url: file,
type: "GET",
};
$.ajax(opts)
Expand Down

0 comments on commit 303fd2e

Please sign in to comment.