We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58ff0f6 + 586c563 commit e4fc2f0Copy full SHA for e4fc2f0
index copy.html
@@ -20,22 +20,6 @@
20
<!-- <script type="module" src="./main.js"></script> -->
21
<script>
22
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
39
w.addEventListener("copy", (event) => {
40
setTimeout(() => {
41
const selection = document.getSelection();
0 commit comments