Skip to content

Commit

Permalink
Implement some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Legnatbird committed Oct 27, 2023
1 parent b7256fc commit 06b4226
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import Toastify from 'toastify-js'
export default async function info(number) {

let url = `http://numbersapi.com/${number}?json`
let response = await fetch(url);
let response = await fetch(url, {
mode: 'no-cors'
});
let result = await response.json();

return Toastify({
Expand Down
4 changes: 4 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// vite.config.js
export default {
base: 'Row-Counter'
}

0 comments on commit 06b4226

Please sign in to comment.