Skip to content

Commit

Permalink
don't proxy components
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 6, 2025
1 parent 8962e4b commit a44e6e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/gui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nostrwatch/gui",
"description": "",
"version": "0.6.55",
"version": "0.6.56",
"license": "MIT",
"keywords": [
"svelte",
Expand Down
4 changes: 2 additions & 2 deletions apps/gui/src/service-worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ self.addEventListener('activate', (event) => {

self.addEventListener('fetch', (event) => {
const url = new URL(event.request.url);
if (url.hostname === 'localhost' || url.hostname === '127.0.0.1' || url.hostname.endsWith('nostr.watch')) {
if (url.hostname === 'localhost' || url.hostname === '127.0.0.1' || url.hostname.includes('nostr.watch')) {
return;
}
if (url.pathname.match(/\.(webp|jpg|png|gif|svg|jpeg|well-known)$/)) {
Expand All @@ -20,7 +20,7 @@ self.addEventListener('fetch', (event) => {
if (response.ok) {
return response;
}
throw new Error('Fetch failed');
// throw new Error('Fetch failed');
})
.catch(() => {
const proxyUrl = `https://proxy.nostr.watch/${url.href}`;
Expand Down

0 comments on commit a44e6e8

Please sign in to comment.