diff --git a/site/assets/js/application.js b/site/assets/js/application.js index cf5e4c9c70..fa1fba00d9 100644 --- a/site/assets/js/application.js +++ b/site/assets/js/application.js @@ -119,6 +119,7 @@ // Insert copy to clipboard button before .highlight var btnTitle = 'Copy to clipboard' + var btnEdit = 'Edit on StackBlitz' var btnHtml = '
' document.querySelectorAll('div.highlight') .forEach(function (element) { @@ -143,8 +144,8 @@ }) } - snippetButtonTooltip('.btn-clipboard', 'Copy to clipboard') - snippetButtonTooltip('.btn-edit', 'Edit on StackBlitz') + snippetButtonTooltip('.btn-clipboard', btnTitle) + snippetButtonTooltip('.btn-edit', btnEdit) var clipboard = new ClipboardJS('.btn-clipboard', { target: function (trigger) {