diff options
author | 2020-06-26 04:30:43 -0400 | |
---|---|---|
committer | 2020-06-26 10:30:43 +0200 | |
commit | c6c727ca571c91d1ff426e218ccadb075cdb2af6 (patch) | |
tree | e1855bb6c6d37f0b28b97be73192316fec2067e5 /source/features/one-key-formatting.tsx | |
parent | 15da229b3a29483f076782361ac429854f18e18b (diff) | |
download | refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.gz refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.zst refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.zip |
Lint and avoid errors (#3256)
Diffstat (limited to 'source/features/one-key-formatting.tsx')
-rw-r--r-- | source/features/one-key-formatting.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/features/one-key-formatting.tsx b/source/features/one-key-formatting.tsx index 719c8bbd..fa492912 100644 --- a/source/features/one-key-formatting.tsx +++ b/source/features/one-key-formatting.tsx @@ -1,4 +1,5 @@ import delegate from 'delegate-it'; +import * as pageDetect from 'github-url-detection'; import * as textFieldEdit from 'text-field-edit'; import features from '.'; @@ -37,6 +38,9 @@ void features.add({ description: 'Wraps selected text when pressing one of Markdown symbols instead of replacing it: (`[` `’` `"` `(` etc).', screenshot: 'https://user-images.githubusercontent.com/1402241/65020298-1f2dfb00-d957-11e9-9a2a-1c0ceab8d9e0.gif' }, { + include: [ + pageDetect.hasCode + ], waitForDomReady: false, repeatOnAjax: false, init |