Skip to content

Commit

Permalink
fix: use ampersand when querying with json endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Jun 26, 2024
1 parent 388274e commit c285930
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/components/CatalogueView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default defineComponent({
// Helper function to fetch API data
const fetchAPI = async (url, params) => {
try {
const response = await fetch(`${url}?${params}`);
const response = await fetch(`${url}&${params}`);
if (!response.ok) {
const readableError = HTTP_CODES[response.status] || response.statusText;
throw new Error(`There was an error connecting to the catalogue: ${readableError}`);
Expand Down
1 change: 0 additions & 1 deletion src/frontend/layouts/default/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default defineComponent({
// Check if the OS is Darwin
const checkOS = async () => {
const platform = await window.electronAPI.getOS();
console.log(platform)
isDarwin.value = (platform === 'darwin');
};
Expand Down

0 comments on commit c285930

Please sign in to comment.