diff --git a/app.js b/app.js index 774fd40..e5ed198 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,4 @@ -import info from './secret.js' +import API_KEY from './secret.js' const body = document.querySelector('body') const button = document.querySelector('.button') const word = document.createElement('h1') @@ -22,7 +22,7 @@ const randomword = () => { const randomDefinition = (word) => { // console.log(word.textContent) - fetch('https://dictionaryapi.com/api/v3/references/collegiate/json/'+(word.textContent)+"?key="+(info.API_KEY)) + fetch('https://dictionaryapi.com/api/v3/references/collegiate/json/'+(word.textContent)+"?key="+(API_KEY)) .then(response => { return response.json(); })