Skip to content

Commit 23679a6

Browse files
committed
fix injectCode not work as expect
1 parent 2e34c76 commit 23679a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/html/Base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ export class Base {
111111
const key = ids[ids.length - 1]
112112
let _code = code
113113
if (DEFAULT_INJECTCODE_ALL in this._injectCode) {
114-
_code = this.generateInjectCode(this._injectCode[DEFAULT_INJECTCODE_ALL], code)
114+
_code = this.generateInjectCode(this._injectCode[DEFAULT_INJECTCODE_ALL], _code)
115115
}
116116
if (key in this._injectCode) {
117-
_code = this.generateInjectCode(this._injectCode[key], code)
117+
_code = this.generateInjectCode(this._injectCode[key], _code)
118118
}
119119
return _code
120120
}

0 commit comments

Comments
 (0)