We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101636f commit 35ad388Copy full SHA for 35ad388
1 file changed
src/humanReadablePane.js
@@ -87,7 +87,7 @@ const humanReadablePane = {
87
const kb = context.session.store
88
89
const cts = kb.fetcher.getHeader(subject.doc(), 'content-type')
90
- let ct = cts ? cts[0].split(';', 1)[0].trim() : null // remove content-type parameters
+ const ct = cts ? cts[0].split(';', 1)[0].trim() : null // remove content-type parameters
91
92
// Fallback: detect markdown by file extension if content-type is not text/markdown
93
const isMarkdown = ct === 'text/markdown' || isMarkdownFile(subject.uri)
0 commit comments