mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
Merge pull request #73 from nunocoracao/72-copy-button-not-working-properly-on-code-blocks
fixed js bug on copy code module
This commit is contained in:
commit
81db60cf2d
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
var scriptBundle = document.getElementById("script-bundle");
|
||||
var copyText = scriptBundle ? scriptBundle.getAttribute("data-copy") : "Copy";
|
||||
var copiedText = scriptBundle ? scriptBundle.getAttribute("data-copied") : "Copied";
|
||||
var copyText = scriptBundle && scriptBundle.getAttribute("data-copy")? scriptBundle.getAttribute("data-copy") : "Copy";
|
||||
var copiedText = scriptBundle && scriptBundle.getAttribute("data-copied")? scriptBundle.getAttribute("data-copied") : "Copied";
|
||||
|
||||
function createCopyButton(highlightDiv) {
|
||||
const button = document.createElement("button");
|
||||
|
|
Loading…
Reference in a new issue