Skip to content

Commit

Permalink
feat(preferences): add app settings for new proxy options COMPASS-8141 (
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax authored Aug 14, 2024
1 parent 11f13fe commit 01cf750
Show file tree
Hide file tree
Showing 35 changed files with 1,949 additions and 469 deletions.
4 changes: 2 additions & 2 deletions configs/mocha-config-compass/main-process.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
const { initialize, enable } = require('@electron/remote/main');
const { app } = require('electron');
const { app, safeStorage } = require('electron');
app.on('web-contents-created', function (_, webContents) {
enable(webContents);
});
Expand All @@ -14,4 +14,4 @@ initialize();
process.env.COMPASS_TEST_USE_PREFERENCES_SANDBOX =
process.env.COMPASS_TEST_USE_PREFERENCES_SANDBOX ?? 'true';
// NB: Not adding this as a dep in package.json to avoid circular dependency
require('compass-preferences-model').setupPreferences();
require('compass-preferences-model').setupPreferences(undefined, safeStorage);
Loading

0 comments on commit 01cf750

Please sign in to comment.