Commit 613368c
authored
NavigationObserver: Fix failure in MAUI (#50)
### **Description**
- Fix MAUI compatibility by checking `addEventListener` function existence
- Add fallback initialization when Blazor event listener unavailable
- Prevent runtime errors in environments without Blazor event support1 parent 3c4cd59 commit 613368c
1 file changed
Lines changed: 11 additions & 5 deletions
File tree
- src/wwwroot
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
173 | 179 | | |
174 | | - | |
175 | | - | |
| 180 | + | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
0 commit comments