We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4306d0b commit f08b072Copy full SHA for f08b072
webkit2/webcontext.go
@@ -56,3 +56,12 @@ func (wc *WebContext) SetCacheModel(model CacheModel) {
56
func (wc *WebContext) ClearCache() {
57
C.webkit_web_context_clear_cache(wc.webContext)
58
}
59
+
60
+//SetWebExtensionsDirectory sets the directory where WebKit will look for Web Extensions.
61
+//
62
+//See also: webkit_web_context_set_web_extensions_directory
63
+//http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebContext.html#webkit-web-context-set-web-extensions-directory
64
+func (wc *WebContext) SetWebExtensionsDirectory(directory string) {
65
+ C.webkit_web_context_set_web_extensions_directory(wc.webContext, (*C.gchar)(C.CString(directory)))
66
+}
67
0 commit comments