Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit d25d1e7

Browse files
committed
Remove the unneeded check of ctx.token.className.
1 parent 70524e0 commit d25d1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/HTMLUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ define(function (require, exports, module) {
290290
tokenType;
291291

292292
// check if this is inside a style block.
293-
if (ctx.token.className === "tag" && editor.getModeForSelection() !== "html") {
293+
if (editor.getModeForSelection() !== "html") {
294294
return createTagInfo();
295295
}
296296

0 commit comments

Comments
 (0)