Skip to content

Commit

Permalink
🚧🍃 Got Core loading! (On Windows :/)
Browse files Browse the repository at this point in the history
  • Loading branch information
MulverineX committed Sep 7, 2023
1 parent b2e30eb commit 5c22ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-flutter/lib/app/load_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:http/http.dart' as http;
import 'package:flutter_js/flutter_js.dart';

Future<void> load() async {
final appData = (await getApplicationDocumentsDirectory()).path;
final appData = (await getApplicationSupportDirectory()).path;

final db = sqlite3.open(join(appData, 'main.db'));

Expand All @@ -30,7 +30,7 @@ Future<void> load() async {
} catch (e) {/* do nothing */}

if (currentTag == false || currentTag != manifest['core']['tag']) {
bundle = (await http.get(Uri.parse('${basePath}/${manifest['core']['assets']['bundle']['src']}'))).body;
bundle = (await http.get(Uri.parse(manifest['core']['assets']['bundle']['src']))).body;

await tagFile.writeAsString(manifest['core']['tag']);

Expand Down

0 comments on commit 5c22ffa

Please sign in to comment.