Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyanshuTrivedi07 committed Oct 19, 2023
1 parent 298be85 commit 12d7775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ <h6 id="news-source">End Gadget : 26/06/2015</h6>
</div>
</template>

<script type="module" src="main.js" defer></script>
<script src="https://kit.fontawesome.com/ca3be2fc43.js" crossorigin="anonymous"></script>
<script src="main.js" defer></script>
<script src="https://kit.fontawesome.com/ca3be2fc43.js" crossorigin="anonymous" defer></script>

</body>

Expand Down
3 changes: 1 addition & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import apiKey from "./config.js";
const API_KEY = apiKey;
const API_KEY = "8a6b525c9925801914d2702fe4683567";
const url = 'https://gnews.io/api/v4/search?q=';

window.addEventListener('load', () => fetchNews('India'));
Expand Down

0 comments on commit 12d7775

Please sign in to comment.