Skip to content

Commit

Permalink
fix: 修复属性中的背景图片路径没有转为绝对路径的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
champkeh committed Dec 15, 2021
1 parent 140b22c commit 36327d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,13 @@ export default class MutationBuffer {
newValue !== old.style.getPropertyValue(pname) ||
newPriority !== old.style.getPropertyPriority(pname)
) {
if (pname === 'background-image') {
// tagName parameter use 'table' in order to call `absoluteToDoc` route internal
newValue = transformAttribute(this.doc, 'table', 'background', newValue)
}
if (newPriority === '') {
styleObj[pname] = newValue;
} else {
if (pname === 'background-image') {
// tagName parameter use 'table' in order to call `absoluteToDoc` route internal
newValue = transformAttribute(this.doc, 'table', 'background', newValue)
}
styleObj[pname] = [newValue, newPriority];
}
}
Expand Down

0 comments on commit 36327d8

Please sign in to comment.