File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ function insertButton() {
135
135
const d = document . querySelector ( `[data-cypress="QuestionTitle"]` )
136
136
. innerHTML ;
137
137
const title = d . match ( / ( \d + \. .+ ) (? = < ) / ) [ 1 ] ;
138
- const link = "https://leetcode-cn.com" + d . match ( / h r e f = " ( .* ?) " / ) [ 1 ] ;
138
+ const link = window . location . origin + d . match ( / h r e f = " ( .* ?) " / ) [ 1 ] ;
139
139
const language = document . querySelector ( "#lang-select" ) . innerText ;
140
140
// let code = document.querySelector(
141
141
// ".monaco-scrollable-element,.editor-scrollable"
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ export default function SolutionTemplate() {
206
206
传参限制,题目信息和代码暂时不会自动带过来,后续考虑使用服务器转存实现自动带入的功能。
207
207
</ li >
208
208
< li > 目前公式无法预览,原因暂时不明,不过后期会支持。</ li >
209
+ < li > 后续考虑提供更多题解模板。</ li >
209
210
< li > 后续考虑支持更多主题,以及用户自定义主题。</ li >
210
211
</ ul >
211
212
< div className = "line" >
You can’t perform that action at this time.
0 commit comments