Skip to content

Commit 06b8970

Browse files
committed
fix(core): translucent now applies in iOS theme not depending on iOS device
1 parent b3b10b2 commit 06b8970

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/components/app/app-class.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,10 @@ class Framework7 extends Framework7Class {
291291
$('html').removeClass('ios md').addClass(app.theme);
292292

293293
// iOS Translucent
294-
const device = app.device;
295-
if (app.params.iosTranslucentBars && app.theme === 'ios' && device.ios) {
294+
if (app.params.iosTranslucentBars && app.theme === 'ios') {
296295
$('html').addClass('ios-translucent-bars');
297296
}
298-
if (app.params.iosTranslucentModals && app.theme === 'ios' && device.ios) {
297+
if (app.params.iosTranslucentModals && app.theme === 'ios') {
299298
$('html').addClass('ios-translucent-modals');
300299
}
301300

0 commit comments

Comments
 (0)