RSS агрегатор
-Пример: https://lorem-rss.hexlet.app/feed
+Пример: https://lorem-rss.hexlet.app/feed
diff --git a/src/app.js b/src/app.js index a16564d..b1c0a57 100644 --- a/src/app.js +++ b/src/app.js @@ -1,4 +1,5 @@ import i18next from 'i18next'; +import 'bootstrap'; import * as yup from 'yup'; import axios from 'axios'; import validate, { createLink } from './utils.js'; diff --git a/src/index.js b/src/index.js index 0a1f3d8..d591786 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,4 @@ import './styles.scss'; -import 'bootstrap'; import app from './app.js'; app(); diff --git a/src/utils.js b/src/utils.js index 8482b63..2c3621b 100644 --- a/src/utils.js +++ b/src/utils.js @@ -15,6 +15,6 @@ export const createLink = (url) => { const originsUrl = new URL('https://allorigins.hexlet.app/get?'); originsUrl.searchParams.set('disableCache', 'true'); originsUrl.searchParams.set('url', url); - return originsUrl; + return originsUrl.toString(); }; export default validate;