Handle missing plugins

fixes #24
This commit is contained in:
Robin Davies
2022-03-11 18:10:51 -05:00
parent 7a6adf0f84
commit 85cb85e377
6 changed files with 60 additions and 10 deletions
+2 -2
View File
@@ -476,7 +476,7 @@ const AppThemed = withStyles(appStyles)(class extends ResizeResponsiveComponent<
// no pull-down refresh on android devices once we're ready (unless we're debug)
let preventOverscroll =
this.model_.state.get() === State.Ready
&& !this.model_.serverVersion.debug;
&& !this.model_.debug;
let overscrollBehavior = preventOverscroll ? "none" : "auto";
document.body.style.overscrollBehavior = overscrollBehavior;
@@ -589,7 +589,7 @@ const AppThemed = withStyles(appStyles)(class extends ResizeResponsiveComponent<
overscrollBehavior: this.state.isDebug ? "auto" : "none"
}}
onContextMenu={(e) => {
if (!this.model_.serverVersion?.debug ?? false) {
if (!this.model_.debug) {
e.preventDefault(); e.stopPropagation();
}
}}