Skip to content

Commit

Permalink
fix(minor): don't remove cssRules
Browse files Browse the repository at this point in the history
unintended cssRules were removed by mistake so until that can be fixed removing deleteRule code.
  • Loading branch information
maharshivpatel committed Apr 1, 2024
1 parent fbd488e commit e21640a
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,6 @@ onMounted(() => {
);
watchEffect(() => {
if (MainStore.screenStyleSheet) {
if (MainStore.screenStyleSheet.CssRuleIndex != null) {
try {
MainStore.screenStyleSheet.deleteRule(MainStore.screenStyleSheet.CssRuleIndex);
} catch (error) {
console.warn("Error Deleting Rule", error);
}
}
MainStore.screenStyleSheet.CssRuleIndex = MainStore.addStylesheetRules([
[
":root, ::after, ::before",
Expand Down Expand Up @@ -530,13 +522,6 @@ onMounted(() => {
});
watchEffect(() => {
if (MainStore.printStyleSheet && MainStore.page) {
for (let index = 0; index < MainStore.printStyleSheet.cssRules.length; index++) {
try {
MainStore.printStyleSheet.deleteRule(index);
} catch (error) {
console.warn("Error Deleting Rule", error);
}
}
const convertToMM = (input) => {
let convertedUnit = useChangeValueUnit({
inputString: input,
Expand Down Expand Up @@ -568,13 +553,6 @@ watchEffect(() => {
});
watchEffect(() => {
if (MainStore.screenStyleSheet && MainStore.modalLocation) {
for (let index = 0; index < MainStore.screenStyleSheet.cssRules.length; index++) {
try {
MainStore.screenStyleSheet.deleteRule(index);
} catch (error) {
console.warn("Error Deleting Rule", error);
}
}
MainStore.addStylesheetRules([
[
":root",
Expand Down

0 comments on commit e21640a

Please sign in to comment.