This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Commit 3ed49e5
authored
refactor: use the
* refactor: swap out xmlhttprequest for fetch
Resolves: #32
* perf: drop unnecessary async modifier
Should drop a single microtask.
Doesn't really make a difference in practice, but it doesn't hurt either.
* refactor: use async-await to load the data
* style: remove random spaces
* refactor: don't use nested functions
* fix: use strict mode, not sloppy mode
This could theoretically change behavior for `{{flutter_js}}`, but I think it's fine.fetch API (#33)1 parent f9b9125 commit 3ed49e5
1 file changed
+31
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
41 | 38 | | |
| 39 | + | |
42 | 40 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 41 | + | |
| 42 | + | |
54 | 43 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 44 | + | |
| 45 | + | |
58 | 46 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 47 | + | |
| 48 | + | |
63 | 49 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
70 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
71 | 61 | | |
| 62 | + | |
72 | 63 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
| |||
0 commit comments