Skip to content

Commit 74cb934

Browse files
committed
fix(recovery): 🚨 linter warnings
1 parent 91a9567 commit 74cb934

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

add-on/src/lib/ipfs-request.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ export function createRequestModifier (getState, dnslinkResolver, ipfsPathValida
144144

145145
// When local IPFS node is unreachable , show recovery page where user can redirect
146146
// to public gateway.
147-
if (!state.nodeActive && // node is not active
148-
!state.redirect && // this is not a redirect request
149-
request.type === 'main_frame' && // this is a request for a root document
150-
sameGateway(request.url, state.gwURL) // this is a request to the local gateway
147+
if (!state.nodeActive && // node is not active
148+
!state.redirect && // this is not a redirect request
149+
request.type === 'main_frame' && // this is a request for a root document
150+
sameGateway(request.url, state.gwURL) // this is a request to the local gateway
151151
) {
152152
const publicUri = ipfsPathValidator.resolveToPublicUrl(request.url, state.pubGwURLString)
153153
return { redirectUrl: `${dropSlash(runtimeRoot)}${recoveryPagePath}#${encodeURIComponent(publicUri)}` }

0 commit comments

Comments
 (0)