WebKit2.WebContext.prototype.set_web_extensions_directory
function set_web_extensions_directory(directory: String): void { // Gjs wrapper for webkit_web_context_set_web_extensions_directory() }
Set the directory where WebKit will look for Web Extensions. This method must be called before loading anything in this context, otherwise it will not have any effect. You can connect to WebKit2.WebContext::initialize-web-extensions to call this method before anything is loaded.
- directory
the directory to add