diff options
Diffstat (limited to 'source/features/tab-to-indent.tsx')
-rw-r--r-- | source/features/tab-to-indent.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/features/tab-to-indent.tsx b/source/features/tab-to-indent.tsx index 170bc10e..a6731d87 100644 --- a/source/features/tab-to-indent.tsx +++ b/source/features/tab-to-indent.tsx @@ -1,4 +1,5 @@ import {eventHandler} from 'indent-textarea'; +import * as pageDetect from 'github-url-detection'; import features from '.'; import onCommentFieldKeydown from '../github-events/on-comment-field-keydown'; @@ -12,6 +13,9 @@ void features.add({ description: 'Enables <kbd>tab</kbd> and <kbd>shift+tab</kbd> for indentation in comment fields.', screenshot: 'https://user-images.githubusercontent.com/1402241/33802977-beb8497c-ddbf-11e7-899c-698d89298de4.gif' }, { + include: [ + pageDetect.hasCode + ], waitForDomReady: false, repeatOnAjax: false, init |