mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01: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:
@@ -1,6 +1,6 @@
|
|||||||
var scriptBundle = document.getElementById("script-bundle");
|
var scriptBundle = document.getElementById("script-bundle");
|
||||||
var copyText = scriptBundle ? scriptBundle.getAttribute("data-copy") : "Copy";
|
var copyText = scriptBundle && scriptBundle.getAttribute("data-copy")? scriptBundle.getAttribute("data-copy") : "Copy";
|
||||||
var copiedText = scriptBundle ? scriptBundle.getAttribute("data-copied") : "Copied";
|
var copiedText = scriptBundle && scriptBundle.getAttribute("data-copied")? scriptBundle.getAttribute("data-copied") : "Copied";
|
||||||
|
|
||||||
function createCopyButton(highlightDiv) {
|
function createCopyButton(highlightDiv) {
|
||||||
const button = document.createElement("button");
|
const button = document.createElement("button");
|
||||||
|
|||||||
Reference in New Issue
Block a user