This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Commit 36de6f1
Conditionally invokes URI.tryParseURI in OSS code
Summary:
Conditionally invokes URI.tryParseURI in OSS code because it's not available in fbjs.
I am on the fence on this one, we need it internally but we can't break OSS consumers of Draft. I think the optional chaining operator with a fallback is a pretty conservative option, however it does look clowny af.
Differential Revision: D22722736
fbshipit-source-id: d8630899b88bd0961ed2e8be86ab25d4369d40d61 parent 9a9ccbd commit 36de6f1
1 file changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
172 | 182 | | |
173 | 183 | | |
174 | 184 | | |
| |||
0 commit comments