Skip to content

Commit

Permalink
skip-process: add a fix for peach.blender.org
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed Oct 3, 2023
1 parent 82c26cb commit 3f25553
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mdn/process-url/skip-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ export const skipProcess = (
skipExternalLogger.debug('skipped external link', host, url, parent?.url);
return;
}
// special path for peach.blender.org
// this site is not a static file cdn
// Also referenced here:
// https://mdn.github.io/dom-examples/fullscreen-api/index.html
if (host === 'peach.blender.org' && (!element ||
!element.is('img') && !element.is('video') && !element.is('audio'))) {
skipExternalLogger.debug('skipped external link', host, url, parent?.url);
return;
}
// incorrectly parsed url
// localhost:3000
// from https://developer.mozilla.org/zh-CN/docs/Learn/Tools_and_testing/
Expand Down

0 comments on commit 3f25553

Please sign in to comment.