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)