| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Obtain a URL GET parameter based on its name in order to use it for NaCl | 8 * Obtain a URL GET parameter based on its name in order to use it for NaCl |
| 9 * module configuration. | 9 * module configuration. |
| 10 * @param {string} name The name of the GET parameter. | 10 * @param {string} name The name of the GET parameter. |
| 11 * @return {string} The corresponding GET parameter value. | 11 * @return {string} The corresponding GET parameter value. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 var elementEmbed = document.createElement('embed'); | 38 var elementEmbed = document.createElement('embed'); |
| 39 elementEmbed.style.width = 0; | 39 elementEmbed.style.width = 0; |
| 40 elementEmbed.style.height = 0; | 40 elementEmbed.style.height = 0; |
| 41 elementEmbed.src = pathToNmfFile; | 41 elementEmbed.src = pathToNmfFile; |
| 42 elementEmbed.type = mimeType; | 42 elementEmbed.type = mimeType; |
| 43 elementDiv.appendChild(elementEmbed); | 43 elementDiv.appendChild(elementEmbed); |
| 44 | 44 |
| 45 document.body.appendChild(elementDiv); | 45 document.body.appendChild(elementDiv); |
| 46 }); | 46 }); |
| OLD | NEW |