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 8484ba1 commit b5285d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/ssr/pages/maintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Translate } from '../common/Translate.js';
import { Worker } from '../common/Worker.js';
/*imports*/

const logger = loggerFactory({ url: location.href });
const logger = loggerFactory({ url: location.toString() });

window.onload = () =>
Worker.instance({
Expand Down
4 changes: 2 additions & 2 deletions src/client/ssr/pages/offline.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { Translate } from '../common/Translate.js';
import { Worker } from '../common/Worker.js';
/*imports*/

const logger = loggerFactory({ url: location.href });
const logger = loggerFactory({ url: location.toString() });

window.onload = () =>
Worker.instance({
render: async () => {
window.ononline = async () => {
location.href = location.origin;
location.href = location.pathname;
};
window.onoffline = async () => {
htmls(`.page-render`, html`${await Alert.noInternet({ Translate })}`);
Expand Down

0 comments on commit b5285d7

Please sign in to comment.