Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit d97de04

Browse files
committed
Add ?disable_fallback_page QP to dat://
1 parent 529e305 commit d97de04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dat/protocol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ exports.electronHandler = async function (request, respond) {
262262
debug('Entry not found:', urlp.path)
263263

264264
// check for a fallback page
265-
if (manifest && manifest.fallback_page) {
265+
if (manifest && manifest.fallback_page && !urlp.query.disable_fallback_page) {
266266
await tryStat(manifest.fallback_page)
267267
}
268268

0 commit comments

Comments
 (0)