Skip to content
Snippets Groups Projects
Commit 3e96fc61 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Only request fullscreen for comment board on desktop device

parent 84491705
No related merge requests found
......@@ -72,8 +72,8 @@ export class CommentPageComponent implements OnInit, OnDestroy, AfterContentInit
}
}
});
// Rescale when this.user['role'] === 3
if (this.user.role === 3) {
const deviceType = localStorage.getItem('deviceType');
if (this.user.role === 3 && deviceType === 'desktop') {
Rescale.requestFullscreen();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment