Skip to content

Commit

Permalink
Re-ordered overloaded methods to avoid Crystal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Dec 18, 2022
1 parent 5faf2dc commit b72768d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: webview
version: 0.2.0
version: 0.2.1

authors:
- Ali Naqvi <[email protected]>
Expand All @@ -10,6 +10,6 @@ description: |
scripts:
postinstall: make

crystal: ">= 0.36.0, < 2.0.0"
crystal: ~> 1.0

license: MIT
8 changes: 4 additions & 4 deletions src/webview.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "json"

# Crystal bindings for [zserge's Webview](https://github.com/zserge/webview) which is an excellent cross-platform single header webview library for C/C++ using Gtk, Cocoa or MSHTML repectively.
module Webview
VERSION = "0.2.0"
VERSION = "0.2.1"

# Window size hints
enum SizeHints
Expand Down Expand Up @@ -128,18 +128,18 @@ module Webview
end
end

def self.window(width, height, hint, title, url, debug = false)
def self.window(width, height, hint, title, debug = false)
wv = Webview.new(debug, title)
wv.size(width, height, hint)
wv.title = title
wv.navigate(url)
wv
end

def self.window(width, height, hint, title, debug = false)
def self.window(width, height, hint, title, url, debug = false)
wv = Webview.new(debug, title)
wv.size(width, height, hint)
wv.title = title
wv.navigate(url)
wv
end

Expand Down

0 comments on commit b72768d

Please sign in to comment.