Skip to content

Commit

Permalink
Починен SW
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDxYk594 committed Dec 16, 2024
1 parent a6d8c77 commit 8da003b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 deletions.
19 changes: 0 additions & 19 deletions src/containers/BoardSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,6 @@ export const BoardSettings = () => {
<div class="board-settings__add-participants">
<div class="add-participiants__text">Добавить участников</div>
<div class="add-participiants__main">
{/*На будущее - приглашение по ссылке*/
/* <div class="main__link-text">Моя ссылка:</div>
<div class="main__link-input">
<Input
key="board-settings-link"
initialValue="https://pumpkin.com/board/228/join_by_invite/9992"
readOnly
copyOnClick
/>
</div>
<div class="main__link-input__btn">
<Button key="copy-link" icon="bi-copy" variant="accent" />
<Button
key="delete-link"
text="Удалить ссылку"
icon="bi-x-lg"
variant="default"
/>
</div> */}
{activeBoard.board.myInviteLinkUuid ? (
<div>
<h1>Ссылка-приглашение</h1>
Expand Down
14 changes: 7 additions & 7 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ self.addEventListener('install', event => {
}));
});

// self.addEventListener('fetch', event => {
// event.respondWith(
// fetch(event.request).catch(() => {
// return caches.match('/static/offline.html');
// })
// );
// });
self.addEventListener('fetch', event => {
event.respondWith(
fetch(event.request).catch(() => {
return caches.match('/static/sw/offline.html');
})
);
});

0 comments on commit 8da003b

Please sign in to comment.