Skip to content
Snippets Groups Projects
Commit 94dc3bb6 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix dashboards on platforms where fullscreen is not supported (e.x. mobile iOS)

parent 46f4e430
No related branches found
No related tags found
No related merge requests found
......@@ -83,13 +83,17 @@ export default class Dashboard extends Component {
}
componentWillMount() {
document.addEventListener(screenfull.raw.fullscreenchange, this.fullScreenChanged);
if (screenfull.enabled) {
document.addEventListener(screenfull.raw.fullscreenchange, this.fullScreenChanged);
}
}
componentWillUnmount() {
document.querySelector(".Nav").classList.remove("hide");
this._clearRefreshInterval();
document.removeEventListener(screenfull.raw.fullscreenchange, this.fullScreenChanged);
if (screenfull.enabled) {
document.removeEventListener(screenfull.raw.fullscreenchange, this.fullScreenChanged);
}
}
loadParams() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment