Skip to content

Commit

Permalink
updated to point to a valid remote file
Browse files Browse the repository at this point in the history
  • Loading branch information
abner committed Feb 12, 2022
1 parent 6eb0728 commit 9b54d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FIXED_RESOURCE.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
HTTP CALL WORKED OK!
HTTP CALL WORKED OK! File returned from https://raw.githubusercontent.com/abner/flutter_js/master/FIXED_RESOURCE.txt
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class _FlutterJsHomeScreenState extends State<FlutterJsHomeScreen> {
child: const Text('Fetch Remote Data'),
onPressed: () async {
var asyncResult = await javascriptRuntime.evaluateAsync("""
fetch('https://raw.githubusercontent.com/abner/flutter_js/master/.gitignore').then(response => response.text());
fetch('https://raw.githubusercontent.com/abner/flutter_js/master/FIXED_RESOURCE.txt').then(response => response.text());
""");
await javascriptRuntime.executePendingJob();
final promiseResolved =
Expand Down

0 comments on commit 9b54d24

Please sign in to comment.