We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ab555 commit a01ab8bCopy full SHA for a01ab8b
core/src/components/app/test/safe-area/index.html
@@ -156,13 +156,8 @@
156
function toggleSafeArea() {
157
console.log('Toggling safe area classes');
158
const htmlTag = document.documentElement;
159
- if (htmlTag.classList.contains('safe-area-capacitor')) {
160
- htmlTag.classList.remove('safe-area-capacitor');
161
- htmlTag.classList.add('safe-area');
162
- } else {
163
- htmlTag.classList.remove('safe-area');
164
- htmlTag.classList.add('safe-area-capacitor');
165
- }
+ htmlTag.classList.toggle('safe-area-capacitor');
+ htmlTag.classList.toggle('safe-area');
166
}
167
</script>
168
</body>
0 commit comments