From f24d8fb76eee958ee505aeee420c3ee7ecf12fc9 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 28 Oct 2024 16:32:30 -0400 Subject: [PATCH] chore(testing): remove the default ionic bundle for the ionic theme --- core/scripts/testing/scripts.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/scripts/testing/scripts.js b/core/scripts/testing/scripts.js index a4b2d46e7e37..ff9a32d95f3a 100644 --- a/core/scripts/testing/scripts.js +++ b/core/scripts/testing/scripts.js @@ -47,6 +47,11 @@ linkTag.setAttribute('href', '/css/ionic/bundle.ionic.css'); document.head.appendChild(linkTag); } + + const defaultThemeLinkTag = document.querySelector('link[href*="css/ionic/ionic.bundle.css"]'); + if (defaultThemeLinkTag) { + defaultThemeLinkTag.remove(); + } } window.Ionic = window.Ionic || {};