Skip to content

Commit 632e9df

Browse files
committed
test(scripts): remove old bundle link if adding ionic link
1 parent 383b868 commit 632e9df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/scripts/testing/scripts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
linkTag.setAttribute('type', 'text/css');
4747
linkTag.setAttribute('href', '/css/ionic/bundle.ionic.css');
4848
document.head.appendChild(linkTag);
49+
50+
const defaultLinkTag = document.querySelector('link[href*="css/ionic.bundle.css"]');
51+
if (defaultLinkTag) {
52+
defaultLinkTag.remove();
53+
}
4954
}
5055
}
5156

0 commit comments

Comments
 (0)