Skip to content

Commit 1739da9

Browse files
committed
Fix issue introduced by previous release
1 parent 235cb29 commit 1739da9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwd-sdk",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "PWD sdk",
55
"main": "dist/index.js",
66
"mainReact": "react/index.js",

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function registerInputHandlers(termName, instance) {
2121
// The parent of <code> blocks is the whole <pre> block
2222
a.parentElement.addEventListener("click", function () {
2323
let cmd = this.innerText;
24-
let dataCmd = this.parentElement.getAttribute("data-command-src");
24+
let dataCmd = this.getAttribute("data-command-src");
2525
if (dataCmd) {
2626
cmd = atob(dataCmd);
2727
}

0 commit comments

Comments
 (0)