summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/snippet
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/snippet')
-rw-r--r--app/assets/javascripts/snippet/snippet_embed.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/snippet/snippet_embed.js b/app/assets/javascripts/snippet/snippet_embed.js
index 700247cfdb3..81ec483f2d9 100644
--- a/app/assets/javascripts/snippet/snippet_embed.js
+++ b/app/assets/javascripts/snippet/snippet_embed.js
@@ -1,9 +1,9 @@
export default () => {
const { protocol, host, pathname } = location;
- const shareBtn = document.querySelector('#share-btn');
- const embedBtn = document.querySelector('#embed-btn');
- const snippetUrlArea = document.querySelector('#snippet-url-area');
- const embedAction = document.querySelector('#embed-action');
+ const shareBtn = document.querySelector('.js-share-btn');
+ const embedBtn = document.querySelector('.js-embed-btn');
+ const snippetUrlArea = document.querySelector('.js-snippet-url-area');
+ const embedAction = document.querySelector('.js-embed-action');
const url = `${protocol}//${host + pathname}`;
shareBtn.addEventListener('click', () => {