Commit 3cd80c37 authored by haseeb's avatar haseeb

removed unused variable

parent 468da173
...@@ -5,14 +5,14 @@ export default () => { ...@@ -5,14 +5,14 @@ export default () => {
const snippetUrlArea = document.querySelector('#snippet-url-area'); const snippetUrlArea = document.querySelector('#snippet-url-area');
const embedAction = document.querySelector('#embed-action'); const embedAction = document.querySelector('#embed-action');
shareBtn.addEventListener('click', (event) => { shareBtn.addEventListener('click', () => {
shareBtn.classList.add('is-active'); shareBtn.classList.add('is-active');
embedBtn.classList.remove('is-active'); embedBtn.classList.remove('is-active');
snippetUrlArea.value = `${protocol}//${host + pathname}`; snippetUrlArea.value = `${protocol}//${host + pathname}`;
embedAction.innerHTML = 'Share'; embedAction.innerHTML = 'Share';
}); });
embedBtn.addEventListener('click', (event) => { embedBtn.addEventListener('click', () => {
embedBtn.classList.add('is-active'); embedBtn.classList.add('is-active');
shareBtn.classList.remove('is-active'); shareBtn.classList.remove('is-active');
const scriptTag = `<script src="${protocol}//${host + pathname}.js"></script>`; const scriptTag = `<script src="${protocol}//${host + pathname}.js"></script>`;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment