Files
packager/wkwebview/WebView/index.html
T
Thomas Weber 933605aa47 Copy WKWebView binary source code in-tree
This was previously maintained in TurboWarp/webviews
2022-06-06 20:13:08 -05:00

18 lines
378 B
HTML

<!DOCTYPE html>
<html>
<body>
<h1>It works!</h1>
<button onclick="download()">Test file download</button>
<script>
const download = async () => {
const blob = new Blob([
new Uint8Array("Hello, world!".split("").map(i => i.charCodeAt(0)))
], {
type: "text/plain"
});
ExternalDownloadHelper.download("test.txt", blob);
};
</script>
</body>
</html>