Commit 475d99c
authored
Fix complex script runtime issues (#7142)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/488551667048375/task/1211981173033273?focus=true
### Description
A last minute seemingly innocent refactor in [β π©βπ» Create artificially
complex
script](https://app.asana.com/1/137249556945/task/1211793818697003) is
causing Uncaught ReferenceError: Cannot access 'stateManager' before
initialization , which prevents the script from fully executing
### Steps to test this PR
_Feature 1_
- [ ] Set `const val PRIVACY_REMOTE_CONFIG_URL =
"https://api.jsonblob.com/019a97b1-c9a7-768f-8cad-bc5c8f4f6f7e"`
- [ ] Fresh install
- [ ] Load a site
- [ ] Open Chrome console and check logs for
- [ ] `Posting initial ping...`
- [ ] `Performance measures: `
- [ ] `Messaging feature initialized`
- [ ] `ddgBlobDownloadObj received Pong from Native`
- [ ] `Performance feature initialized`
- [ ] `window received ...`
### UI changes
n/a1 parent b210b63 commit 475d99c
1 file changed
+3
-19
lines changedLines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 30 | + | |
39 | 31 | | |
40 | 32 | | |
41 | 33 | | |
42 | | - | |
| 34 | + | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
49 | 41 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 42 | | |
59 | 43 | | |
60 | 44 | | |
61 | | - | |
| 45 | + | |
62 | 46 | | |
63 | 47 | | |
64 | 48 | | |
| |||
0 commit comments