Skip to content

Commit

Permalink
refactor(App): attribute removal
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
  • Loading branch information
ferferga committed Jan 8, 2025
1 parent ad36643 commit 013e1a6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
/**
* When app is mounted, the classes and styles we initialized in the pre-Vue splashscreen in body
* are now useless and can break the page if not removed.
*
* We set all the styles and vars in JApp, so we want a body with 0 styling attributes.
*/
onMounted(() => {
document.body.removeAttribute('class');
document.body.removeAttribute('style');
});
document.body.removeAttribute('class');
document.body.removeAttribute('style');
</script>

0 comments on commit 013e1a6

Please sign in to comment.