mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix detection of sync connection issue with new error code
This commit is contained in:
parent
75dbaa4b77
commit
51bede6541
@ -49,7 +49,7 @@ async function sync() {
|
||||
catch (e) {
|
||||
proxyToggle = !proxyToggle;
|
||||
|
||||
if (e.message && e.message.indexOf('ECONNREFUSED') !== -1) {
|
||||
if (e.message && (e.message.includes('ECONNREFUSED') || e.message.includes('ERR_CONNECTION_REFUSED'))) {
|
||||
log.info("No connection to sync server.");
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user