Project

General

Profile

p2j.js.patch

Sergey Ivanovskiy, 10/20/2019 11:28 AM

Download (1.36 KB)

View differences:

src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js 2019-10-20 09:36:06 +0000
940 940
   me.createOffscreenCanvas = createOffscreenCanvas;
941 941
   
942 942
   /**
943
    * Tests the screen media if it has a high resolution.
944
    * 
945
    * @returns  {Boolean}
946
    *           True if the screen media has a high resolution.
947
    */
948
   function isHighResolution()
949
   {
950
      return window.matchMedia &&
951
               (window.matchMedia(
952
                     'only screen and (min-resolution: 192dpi), only screen and ' +
953
                     '(min-resolution: 2dppx), ' +
954
                     'only screen and (min-resolution: 75.6dpcm)').matches ||
955
                window.matchMedia(
956
                     'only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ' +
957
                     '(-o-min-device-pixel-ratio: 2/1), only screen and ' +
958
                     '(min--moz-device-pixel-ratio: 2), only screen and ' +
959
                     '(min-device-pixel-ratio: 2)').matches);
960
   }
961
   
962
   /** Tests the screen media if it has a high resolution.*/
963
   me.isHighResolution = isHighResolution;
964
   
965
   /**
943 966
    * Creates and displays the modal dialog.
944 967
    * 
945 968
    * @param    {String} id