From ae96135c33013865cf1c6b12e0585b151dc5e34b Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sun, 17 Jul 2022 23:09:56 +0800 Subject: [PATCH] fix: jump to files in commit page --- src/platforms/GitHub/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/GitHub/index.ts b/src/platforms/GitHub/index.ts index e1d0c14..96bc97e 100644 --- a/src/platforms/GitHub/index.ts +++ b/src/platforms/GitHub/index.ts @@ -216,7 +216,8 @@ export const GitHub: Platform = { return { 'data-pjax': pjaxContainerSelector, - 'data-turbo-frame': URLHelper.isInPullPage() ? undefined : turboContainerId, + 'data-turbo-frame': + URLHelper.isInPullPage() || URLHelper.isInCommitPage() ? undefined : turboContainerId, onClick() { /* Overwriting default onClick */ },