Commit 7e6c23e
authored
fix(feedback): Be consistent about whether screenshot should and can render (#11859)
This fixes the conditions for loading and rendering the screenshot
integration.... also improves the conditions for not rendering it if
we're on a mobile device.
- We should check the local`options.showScreenshot` instead of the
closed-over `showScreenshot` because the options might have changed for
this instance of the widget
- We should combine `options.showScreenshot` (the desire) with
`isScreenshotSupported()` (the possibility) to set the right expectation1 parent 3c95ac9 commit 7e6c23e
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | | - | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
196 | 204 | | |
197 | | - | |
| 205 | + | |
198 | 206 | | |
199 | 207 | | |
200 | 208 | | |
| |||
0 commit comments