@ionic/react 8.8.1-dev.11773168858.1f9c0eb8 → 8.8.1-dev.11773432149.19826d0c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2460,6 +2460,17 @@ class LocationHistory {
|
|
|
2460
2460
|
canGoBack() {
|
|
2461
2461
|
return this.locationHistory.length > 1;
|
|
2462
2462
|
}
|
|
2463
|
+
findTabForPathname(pathname) {
|
|
2464
|
+
for (const tab of Object.keys(this.tabHistory)) {
|
|
2465
|
+
const routeInfos = this.tabHistory[tab];
|
|
2466
|
+
for (let i = routeInfos.length - 1; i >= 0; i--) {
|
|
2467
|
+
if (routeInfos[i].pathname === pathname) {
|
|
2468
|
+
return tab;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
return undefined;
|
|
2473
|
+
}
|
|
2463
2474
|
}
|
|
2464
2475
|
|
|
2465
2476
|
class NavManager extends React.PureComponent {
|