Skip to content

Commit

Permalink
merge: 合并代码
Browse files Browse the repository at this point in the history
  • Loading branch information
wa-monster committed Dec 14, 2023
2 parents 58ff0f6 + 586c563 commit e4fc2f0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions index copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,6 @@
<!-- <script type="module" src="./main.js"></script> -->
<script>
const w = document.querySelector("#w");
function abc(text) {
const type = "text/plain";
const blob = new Blob([text], { type });
const data = [new ClipboardItem({ [type]: blob })];

navigator.clipboard.write(data).then(
() => {
/* success */
console.log("2222222222");
getClipboardContents();
},
() => {
/* failure */
}
);
}
w.addEventListener("copy", (event) => {
setTimeout(() => {
const selection = document.getSelection();
Expand Down

0 comments on commit e4fc2f0

Please sign in to comment.