Skip to content

WebView 1.5.0

Latest
Compare
Choose a tag to compare
@britzl britzl released this 01 Apr 05:57
· 4 commits to master since this release
ed38347

NEW: Added support for adding custom request headers when navigating within the webview:

local options = {
    headers = {
        ["Accept-Origin"] = "*",
        ["User-Agent"] = "Foobar 1.0",
    }
}
webview.open(self.webview_id, "https://www.google.com", options)

NEW: Added support for making the webview background transparent:

local id = webview.create(...)

-- two different ways to set the background color to transparent
webview.open(id, url, { transparent = true })
webview.set_transparent(id, true)