Commit 044e2c3
committed
fix(barcode-scanner): resolve scan() after cleanup in windowed mode on iOS
Reorder operations in metadataOutput so that dismantleCamera() and
webview restoration run before invoke.resolve(). Previously, resolve()
was called first and destroy() immediately after, which restored
webView.isOpaque before the IPC response reached JavaScript — causing
the scan() promise to never settle in windowed mode.1 parent 84dd8ec commit 044e2c3
1 file changed
Lines changed: 11 additions & 9 deletions
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments