Skip to content

Commit 6a3e452

Browse files
Merge pull request #627 from appwrite/fix-sdk-url
Fix url used for checking offline status
2 parents fc4918a + 75c86e2 commit 6a3e452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/flutter/lib/src/client_offline_mixin.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class ClientOfflineMixin {
183183

184184
Future<void> checkOnlineStatus() async {
185185
try {
186-
final url = Uri.parse('{{spec.endpoint}}/version');
186+
final url = Uri.parse('{{sdk.url}}/version');
187187
await http.head(url).timeout(Duration(seconds: 1));
188188
isOnline.value = true;
189189
} catch (_) {

0 commit comments

Comments
 (0)