Skip to content

Commit

Permalink
addLinkNode添加data-url属性
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteSevs committed Jul 6, 2024
1 parent 0d6c9ae commit 4bd696f
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 76 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1720244889346,
"time": 1720245271995,
"version": "2024.7.6.13"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4046,11 +4046,7 @@ match-attr##srcid##sp_purc_atom
}
});
if (getResp.status && getResp.data.responseText) {
let $style = document.createElement("style");
$style.innerHTML = getResp.data.responseText;
domutils.ready(() => {
document.head.appendChild($style);
});
addStyle(getResp.data.responseText);
} else {
let $link = document.createElement("link");
$link.rel = "stylesheet";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ export const CommonUtils = {
},
});
if (getResp.status && getResp.data.responseText) {
let $style = document.createElement("style");
$style.innerHTML = getResp.data.responseText;
DOMUtils.ready(() => {
document.head.appendChild($style);
});
addStyle(getResp.data.responseText);
} else {
let $link = document.createElement("link");
$link.rel = "stylesheet";
Expand Down

0 comments on commit 4bd696f

Please sign in to comment.