Skip to content

Commit e681912

Browse files
authored
Disallow passing nothing for hint.
1 parent 37235f0 commit e681912

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Webviews"
22
uuid = "b7e775b7-052a-4229-9250-fe08ae90f9c6"
33
authors = ["Sunoru <[email protected]>"]
4-
version = "1.0.0"
4+
version = "1.0.1"
55

66
[deps]
77
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"

docs/src/lib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ destroy
1818
dispatch
1919
window_handle
2020
title!
21-
resize!(::Webview)
21+
resize!(::Webview, ::Tuple{Integer, Integer}; hint::WindowSizeHint)
2222
navigate!
2323
html!
2424
init!

src/API.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Sets the native window size.
123123
function Base.resize!(
124124
w::AbstractWebview,
125125
size::Tuple{Integer,Integer};
126-
hint::Union{WindowSizeHint,Nothing}=WEBVIEW_HINT_NONE
126+
hint::WindowSizeHint=WEBVIEW_HINT_NONE
127127
)
128128
resize!(w.platform, size, hint=hint)
129129
w

0 commit comments

Comments
 (0)