-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed injectCss and added some errors :D
- Loading branch information
1 parent
d6af0dd
commit 364ab1c
Showing
11 changed files
with
716 additions
and
438 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deno_webview" | ||
version = "0.1.2" | ||
version = "0.1.3" | ||
authors = ["Elias Sjögreen <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -9,7 +9,7 @@ crate-type = ["cdylib"] | |
|
||
[dependencies] | ||
deno_core = "0.36.0" | ||
webview-sys = "0.4.2" | ||
webview-sys = "0.5.0" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { WebView } from "../mod.ts"; | ||
|
||
new WebView({ | ||
title: "Local deno_webview example", | ||
url: `data:text/html, | ||
title: "Local deno_webview example", | ||
url: `data:text/html, | ||
<html> | ||
<body> | ||
<h1>Hello from deno</h1> | ||
</body> | ||
</html> | ||
`, | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
}).run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import { WebView } from "../mod.ts"; | ||
|
||
const webview1 = new WebView({ | ||
title: "Multiple deno_webview example", | ||
url: `data:text/html, | ||
title: "Multiple deno_webview example", | ||
url: `data:text/html, | ||
<html> | ||
<body> | ||
<h1>1</h1> | ||
</body> | ||
</html> | ||
`, | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
}); | ||
|
||
const webview2 = new WebView({ | ||
title: "Multiple deno_webview example", | ||
url: `data:text/html, | ||
title: "Multiple deno_webview example", | ||
url: `data:text/html, | ||
<html> | ||
<body> | ||
<h1>2</h1> | ||
</body> | ||
</html> | ||
`, | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
}); | ||
|
||
while (webview1.step() && webview2.step()) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { WebView } from "../mod.ts"; | ||
|
||
new WebView({ | ||
title: "Remote deno_webview example", | ||
url: `https://en.wikipedia.org/wiki/Main_Page`, | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
title: "Remote deno_webview example", | ||
url: `https://en.wikipedia.org/wiki/Main_Page`, | ||
width: 800, | ||
height: 600, | ||
resizable: true, | ||
debug: true, | ||
frameless: false | ||
}).run(); |
Oops, something went wrong.