Zum Hauptinhalt gehen

Tablet site loads on Windows 10 Desktop

Kommentare

3 Kommentare

  • Zack Robison
    I've seen it happen before, but only on small screens.
    0
  • Chris Roberts
    We had the same issues, where staff are using a Surface Tablet as a desktop PC. To force a surface to behave like a desktop I modified the  C:\inetpub\wwwroot\Html5Viewer\Resources\Compiled\loader.js as follows:

     

    FROM

     

     

     

    ViewerLoader.determineAppropriateShell = function (userAgent) {

     

                    if (userAgent === void 0) { userAgent = navigator.userAgent; }

     

                    var shell;

     

                    var ua = function (search) { return new RegExp(search, "i").test(userAgent); };

     

                    if ((ua("Android") && ua("mobile")) || (ua("Windows") && ua("Phone")) || ua("iPhone") || ua("iPod") || ua("BlackBerry") || ua("BB10")) {

     

                        shell = "Handheld";

     

                    }

     

                    else if (ua("Android") || ua("iPad") || ua("Playbook") || ua("Touch")) {

     

                        shell = "Tablet";

     

                    }

     

                    else {

     

                        shell = "Desktop";

     

                    }

     

                    return shell;

     

                };

     

     

     

     

     

    TO

     

     

     

     

     

     ViewerLoader.determineAppropriateShell = function (userAgent) {

     

                    if (userAgent === void 0) { userAgent = navigator.userAgent; }

     

                    var shell;

     

                    var ua = function (search) { return new RegExp(search, "i").test(userAgent); };

     

                    if ((ua("Android") && ua("mobile")) || (ua("Windows") && ua("Phone")) || ua("iPhone") || ua("iPod") || ua("BlackBerry") || ua("BB10")) {

     

                        shell = "Handheld";

     

                    }

     

                    else if (ua("Android") || ua("iPad") || ua("Playbook")) {

     

                        shell = "Tablet";

     

                    }

     

                    else {

     

                        shell = "Desktop";

     

                    }

     

                    return shell;

     

                };
    0
  • Permanently deleted user
    We've had the same thing reported on a couple of our MS Surfaces also,when they have flipped from table to desktop mode. It's an interesting one. Thanks for the tweak Chris, I'll be getting that change in now!
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.