Skip to content

Commit

Permalink
Update github repo package
Browse files Browse the repository at this point in the history
  • Loading branch information
underpostnet committed Nov 5, 2024
1 parent b5285d7 commit a53d407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/ssr/pages/offline.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ window.onload = () =>
Worker.instance({
render: async () => {
window.ononline = async () => {
location.href = location.pathname;
location.href = location.pathname.split('/')[1] ? `/${location.pathname.split('/')[1].split('.')[0]}` : '/';
};
window.onoffline = async () => {
htmls(`.page-render`, html`${await Alert.noInternet({ Translate })}`);
Expand Down

0 comments on commit a53d407

Please sign in to comment.