Skip to content

Commit

Permalink
refactor: improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Jan 21, 2024
1 parent be21b75 commit dd7e6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _javascript/pwa/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if ('serviceWorker' in navigator) {
});
});

$btnRefresh.click(() => {
$btnRefresh.on('click', () => {
if (registration.waiting) {
registration.waiting.postMessage('SKIP_WAITING');
}
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function build(filename, opts) {
let src = SRC_DEFAULT;
let dist = DIST_DEFAULT;

if (opts !== undefined) {
if (typeof opts !== 'undefined') {
src = opts.src || src;
dist = opts.dist || dist;
}
Expand Down

0 comments on commit dd7e6eb

Please sign in to comment.