19 lines
353 B
TypeScript
19 lines
353 B
TypeScript
import { Webview } from "@webview/webview";
|
|
|
|
const html = `
|
|
<html>
|
|
<body>
|
|
<h1>Hello from deno v${Deno.version.deno}</h1>
|
|
</body>
|
|
</html>
|
|
`;
|
|
|
|
const webview = new Webview();
|
|
|
|
webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
|
|
// webview.run();
|
|
// webview.navigate('https://kevisual.cn/root/center/');
|
|
|
|
webview.run();
|
|
|
|
// 不成熟
|