Skip to content

Commit

Permalink
fix: set relative base path
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed May 16, 2023
1 parent 636fe44 commit 307e72e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/loaders/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ import type { Confusion } from '../confusions';
export async function json(filename: string): Promise<Array<Confusion>> {
const response = await fetch(filename);
const json = await response.json();
const data = json.data.values;

return data;
return json.data.values;
}
3 changes: 3 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const config = {
preprocess: vitePreprocess(),

kit: {
paths: {
base: '/ml-hierarchical-confusion-matrix',
},
version: {
name: pkg.version,
},
Expand Down

0 comments on commit 307e72e

Please sign in to comment.