Skip to content

Commit d12ed39

Browse files
committed
fix: assume we are online until we are told otherwise
this is needed for registration from seed to work properly
1 parent 084f3fc commit d12ed39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

preload.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ ipc.on('get-theme-setting', () => {
202202
ipc.send('get-success-theme-setting', theme);
203203
});
204204

205+
// Assume we are online until we are told otherwise (needed for restore from seed to work)
206+
window.isOnline = true;
207+
205208
window.getSettingValue = (settingID, comparisonValue = null) => {
206209
// Comparison value allows you to pull boolean values from any type.
207210
// Eg. window.getSettingValue('theme', 'classic-dark')

0 commit comments

Comments
 (0)