OSDN Git Service

Version 0.6.129, fix X.Node.
[pettanr/clientJs.git] / 0.6.x / js / 01_core / 02_XUA.js
index 0f0209e..c0a1d4f 100644 (file)
@@ -82,7 +82,7 @@ var X_UA = (function( n, undefined ){
                                acme[ sys] = true;\r
                };\r
        } else\r
-       if( sys.indexOf( 'Linux' ) + 1 ){\r
+       if( ( sys.indexOf( 'Linux' ) + 1 ) || ( sys.indexOf( 'Android' ) + 1 ) ){\r
                console.log( 'Linux' );\r
                acme.Linux = true;\r
                \r
@@ -142,7 +142,7 @@ Sleipnir Mobile     Android 2.1以上       Fenrir
                acme.IE9      = 9 <= acme.IE && acme.IE < 10;\r
                acme.MacIE    = acme.Mac;\r
                acme.IEMobile = dua.toLowerCase().indexOf( 'iemobile' ) !== -1 || acme.WinCE;\r
-               acme.WinPhone = dua.toLowerCase().indexOf( 'windows phone' ) !== -1;\r
+               acme.WinPhone = dua.toLowerCase().indexOf( 'windows phone' ) !== -1 || 0 < dav.indexOf( 'ZuneWP' ); // ZuneWP は IEM のデスクトップモードで使用\r
                console.log( '>> IE : ' + acme.IE + ' ActiveX : ' + acme.ActiveX );\r
                // TODO XBox360, XBox1, Modern or Desktop, Standalone\r
                return acme;\r
@@ -164,6 +164,8 @@ Sleipnir Mobile     Android 2.1以上       Fenrir
        // http://www.useragentstring.com/pages/Playstation%203/\r
        // Mozilla/5.0 (PLAYSTATION 3; 3.55)\r
     // Mozilla/4.0 (PS3 (PlayStation 3); 1.00)\r
+    // https://github.com/Famous/famous/blob/1a02c8084587d80519ea4bd3b55649ab32ee2e65/examples/assets/lib/require.js\r
+    // PS3 ブラウザのロードイベントについて\r
        if( ( i = dua.toUpperCase().indexOf( 'PLAYSTATION 3' ) !== -1 ) ){\r
                acme.PS3 = parseFloat( dua.substr( i + 15 ) ) || 0.1;\r
                console.log( '>> PS3 : ' + acme.PS3 );\r