Commit 280bf29
authored
fix(web): guard URL strategy import on js_interop, not html (#537)
`dart:html` is only provided by dart2js, so under dart2wasm the
conditional import fell through to the no-op stub and path-based URLs
silently reverted to hash routing — the outcome ADR 0004 rejected.
`dart.library.js_interop` is the supported "compiling for the web"
condition on both dart2js and dart2wasm, so the guard now holds on
either compiler. `kIsWeb` already gates the call itself.
Fixes #5251 parent 68c0885 commit 280bf29
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | | - | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments