loleaflet/src/control/Control.MobileWizard.js |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 4d49156ff22267f1b7e6d88787bc81e7e6efc764
Author:     Jan Holesovsky <ke...@collabora.com>
AuthorDate: Fri Apr 10 13:53:54 2020 +0200
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Tue Apr 14 19:51:31 2020 +0200

    mobile: The mobile-wizard is mobile phone only.
    
    Don't try to instantiate it on desktop or tablet.
    
    Change-Id: I71bb0fa4e6fbd3edce0adbd803d858874640adca
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92034
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/src/control/Control.MobileWizard.js 
b/loleaflet/src/control/Control.MobileWizard.js
index bb0b3d95d..c45f25753 100644
--- a/loleaflet/src/control/Control.MobileWizard.js
+++ b/loleaflet/src/control/Control.MobileWizard.js
@@ -25,6 +25,11 @@ L.Control.MobileWizard = L.Control.extend({
 
        onAdd: function (map) {
                this.map = map;
+
+               // for the moment, the mobile-wizard is mobile phone only
+               if (!window.mode.isMobile())
+                       return;
+
                map.on('mobilewizard', this._onMobileWizard, this);
                map.on('closemobilewizard', this._hideWizard, this);
                map.on('showwizardsidebar', this._showWizardSidebar, this);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to