| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 3 <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. --> | 5 found in the LICENSE file. --> |
| 6 | 6 |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | 9 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| 10 <title>Test Request Desktop Script Layer</title> | 10 <title>Test Request Desktop/Mobile Script</title> |
| 11 </head> | 11 </head> |
| 12 <body> | 12 <body> |
| 13 <script type="text/javascript"> | 13 <script type="text/javascript"> |
| 14 if (navigator.appVersion.toLowerCase().indexOf("mobile") > -1) | 14 if (navigator.appVersion.toLowerCase().indexOf("mobile") > -1) |
| 15 document.write('Mobile'); | 15 document.write('Mobile'); |
| 16 else | 16 else |
| 17 document.write('Desktop'); | 17 document.write('Desktop'); |
| 18 </script> | 18 </script> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| OLD | NEW |