Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

prevent loading ab or dd in mobile #1484

Benjamin Kinge6c3d736b5b8
diff --git a/web/js/compare/model.js b/web/js/compare/model.js
index 9d792f137..7a826d563 100644
--- a/web/js/compare/model.js
+++ b/web/js/compare/model.js
@@ -55,16 +55,18 @@ export function compareModel(models, config) {
}
};
self.load = function(state) {
- if (state.ca) {
- self.active = true;
- self.isCompareA = state.ca === 'true';
- }
- if (state.cm) {
- self.active = true;
- self.mode = state.cm;
- }
- if (state.cv) {
- self.value = Number(state.cv);
+ if (!util.browser.small && !util.browser.mobileDevice) {
+ if (state.ca) {
+ self.active = true;
+ self.isCompareA = state.ca === 'true';
+ }
+ if (state.cm) {
+ self.active = true;
+ self.mode = state.cm;
+ }
+ if (state.cv) {
+ self.value = Number(state.cv);
+ }
}
};
return self;
diff --git a/web/js/data/model.js b/web/js/data/model.js
index f389d6a1d..43225ce0d 100644
--- a/web/js/data/model.js
+++ b/web/js/data/model.js
@@ -288,7 +288,7 @@ export function dataModel(models, config) {
self.load = function(state, errors) {
var productId = state.download;
- if (productId) {
+ if (productId && !util.browser.small && !util.browser.mobileDevice) {
var found = lodashFind(models.layers[models.layers.activeLayers], {
product: productId
});