puppeteer/fix-location.js
release-please[bot] 5432142959 deploy: ea480c24e1
2024-06-04 08:22:15 +00:00

2 lines
277 B
JavaScript

/*! For license information please see fix-location.js.LICENSE.txt */
const url=new URL(window.location.href);url.pathname.endsWith("/")&&"/"!==url.pathname&&(url.pathname=url.pathname.substring(0,url.pathname.length-1),window.history.replaceState(null,void 0,url.toString()));