Set the WK data dir so we don't pick up WK default local storage.
This commit is contained in:
parent
919aea1516
commit
2f145ac76f
1 changed files with 7 additions and 1 deletions
|
|
@ -37,7 +37,13 @@ public class ClientWebView : WebKit.WebView {
|
|||
private class WebsiteDataManager : WebKit.WebsiteDataManager {
|
||||
|
||||
public WebsiteDataManager(string base_cache_directory) {
|
||||
Object(base_cache_directory: base_cache_directory);
|
||||
// Use the cache dir for both cache and data since a)
|
||||
// emails shouldn't be storing data anyway, and b) so WK
|
||||
// doesn't use the default, shared data dir.
|
||||
Object(
|
||||
base_cache_directory: base_cache_directory,
|
||||
base_data_directory: base_cache_directory
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue