Skip to content

Commit e4fc2f0

Browse files
committed
merge: 合并代码
2 parents 58ff0f6 + 586c563 commit e4fc2f0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

index copy.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@
2020
<!-- <script type="module" src="./main.js"></script> -->
2121
<script>
2222
const w = document.querySelector("#w");
23-
function abc(text) {
24-
const type = "text/plain";
25-
const blob = new Blob([text], { type });
26-
const data = [new ClipboardItem({ [type]: blob })];
27-
28-
navigator.clipboard.write(data).then(
29-
() => {
30-
/* success */
31-
console.log("2222222222");
32-
getClipboardContents();
33-
},
34-
() => {
35-
/* failure */
36-
}
37-
);
38-
}
3923
w.addEventListener("copy", (event) => {
4024
setTimeout(() => {
4125
const selection = document.getSelection();

0 commit comments

Comments
 (0)