summaryrefslogtreecommitdiff
path: root/source/features/tab-to-indent.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-06-26 04:30:43 -0400
committerGravatar GitHub <noreply@github.com> 2020-06-26 10:30:43 +0200
commitc6c727ca571c91d1ff426e218ccadb075cdb2af6 (patch)
treee1855bb6c6d37f0b28b97be73192316fec2067e5 /source/features/tab-to-indent.tsx
parent15da229b3a29483f076782361ac429854f18e18b (diff)
downloadrefined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.gz
refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.zst
refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.zip
Lint and avoid errors (#3256)
Diffstat (limited to 'source/features/tab-to-indent.tsx')
-rw-r--r--source/features/tab-to-indent.tsx4
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