Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit 65f6057

Browse files
authored
Update retroCompatibility.js
1 parent 0711c6c commit 65f6057

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/helpers/retroCompatibility.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ module.exports = {
1818
throw `The environment '${envName}' has not been found in the environments.json file. We suggest you to create a livestorm.config.js file instead to be able to fully use the new environments manager: https://developers.livestorm.co/docs/managing-environments`
1919
}
2020

21-
foundEnv.endpoint ||= livestormDomain
21+
if (!foundEnv.endpoint) {
22+
foundEnv.endpoint = livestormDomain
23+
}
2224

2325
console.log('Environments.json will not longer be maintained soon. Please use livestorm.config.js instead.')
2426

2527
return foundEnv
2628
}
27-
}
29+
}

0 commit comments

Comments
 (0)