cotomy 0.1.65 → 0.1.66
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/browser/cotomy.js +6 -0
- package/dist/browser/cotomy.js.map +1 -1
- package/dist/browser/cotomy.min.js +1 -1
- package/dist/browser/cotomy.min.js.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/page.js +6 -0
- package/dist/esm/page.js.map +1 -1
- package/dist/types/page.d.ts +2 -0
- package/package.json +1 -1
package/dist/browser/cotomy.js
CHANGED
|
@@ -2785,6 +2785,12 @@ class CotomyUrl {
|
|
|
2785
2785
|
redirect() {
|
|
2786
2786
|
window.location.href = this.url;
|
|
2787
2787
|
}
|
|
2788
|
+
replace() {
|
|
2789
|
+
window.location.replace(this.url);
|
|
2790
|
+
}
|
|
2791
|
+
replaceState(state = null, title = "") {
|
|
2792
|
+
window.history.replaceState(state, title, this.url);
|
|
2793
|
+
}
|
|
2788
2794
|
}
|
|
2789
2795
|
class CotomyPageController {
|
|
2790
2796
|
constructor() {
|