Skip to content

Commit

Permalink
Updated test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Mar 10, 2020
1 parent 54cfc69 commit 102e9ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ the basics are really implemented yet (apart from opening a webview window).
## Example
Run the following with the `-A` flag enabled to get the example shown above:
```ts
import { WebView } from "https://raw.githubusercontent.com/eliassjogreen/deno_webview/master/mod.ts";
import { WebView } from "./mod.ts";

const webview = new WebView({
title: "Hello world",
url:
"data:text/html," +
`
url: `data:text/html,
<html>
<body>
<h1>Hello from deno</h1>
Expand Down
4 changes: 1 addition & 3 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { WebView } from "./mod.ts";

const webview = new WebView({
title: "Hello world",
url:
"data:text/html," +
`
url: `data:text/html,
<html>
<body>
<h1>Hello from deno</h1>
Expand Down

0 comments on commit 102e9ed

Please sign in to comment.