ya-webadb/libraries/fetch-scrcpy-server/examples/vite/index.js
2024-01-20 22:10:47 +08:00

9 lines
308 B
JavaScript

import { BIN, VERSION } from "@yume-chan/fetch-scrcpy-server";
const output = document.getElementById("output");
output.textContent += VERSION + "\n";
fetch(BIN)
.then((res) => res.arrayBuffer())
.then((buffer) => {
output.textContent += "length: " + buffer.byteLength + " bytes\n";
});