Skip to content

fix(script error): fix unexpected token#741

Open
cntanglijun wants to merge 1 commit intoiblh:canaryfrom
cntanglijun:canary
Open

fix(script error): fix unexpected token#741
cntanglijun wants to merge 1 commit intoiblh:canaryfrom
cntanglijun:canary

Conversation

@cntanglijun
Copy link
Contributor

Contributing rules

  • Fork the repo and create your branch from canary. Then be sure to put the canary branch as the target for your pull request.
  • Please be sure to follow the contributing guidelines, especially for commit message
  • Remove the Contributing rules part from this description
  • Fill out the other parts from this description

If you don't do so, we might change your pull request's title and using squash to merge your changed.

What kind of change does this PR introduce? (check one with "x")

  • Bug fix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

Description

升级 hexo 4.1.0 之后的版本,出现脚本错误的情况。由于 hexo 更新了 css() 方法 #3690,会在结果前后添加 \n 字符,所以这里使用 .trim() 方法做一下处理

image


Verification steps

No verification steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant