add-data rendering & clipboard takes element

This commit is contained in:
realaravinth
2021-07-21 10:42:25 +05:30
parent 4b18992f6a
commit b603208d48
5 changed files with 37 additions and 78 deletions

View File

@@ -28,7 +28,7 @@ const index = () => {
document.querySelector(`.${SECRET_COPY_ICON}`)
);
const writeText = secretElement.dataset.secret;
new CopyIcon(writeText, SECRET_COPY_ICON, SECRET_COPY_DONE_ICON);
new CopyIcon(writeText, secretElement, SECRET_COPY_DONE_ICON);
};
export default index;