Skip to content

Commit 37448eb

Browse files
committed
Add back updater offline check
I changed this a few days ago, because it looked like the string had changed. Now we apparently have to deal with both.
1 parent b897a90 commit 37448eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/desktop/src/lib/updater/updater.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ export class UpdaterService {
168168
function isOffline(err: any): boolean {
169169
return (
170170
typeof err === 'string' &&
171-
(err.includes('error sending request for') || err.includes('Network Error'))
171+
(err.includes('Could not fetch a valid release') ||
172+
err.includes('error sending request for') ||
173+
err.includes('Network Error'))
172174
);
173175
}
174176

0 commit comments

Comments
 (0)