mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
fixed js bug on copy code module
This commit is contained in:
+2
-2
@@ -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