Commit f123450b authored by ibuler's avatar ibuler

[Update] 要求剪切板权限

parent b5ffe54a
......@@ -13,4 +13,20 @@
<span id="marker" style="display: none;font-size: 14px">marker</span>
</body>
<script>
window.onload = function (ev) {
var clipboardData = "";
if (navigator.clipboard && navigator.clipboard.readText) {
navigator.clipboard.readText().then(function textRead(text) {
clipboardData = text;
});
}
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(clipboardData)
}
}
</script>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment