| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * Callback from the backend with the list of variations to display. | |
| 7 * This call will build the variations section of the version page, or hide that | |
| 8 * section if there are none to display. | |
| 9 * @param {!Array<string>} variationsList The list of variations. | |
| 10 */ | |
| 11 function returnVariationInfo(variationsList) { | |
| 12 $('variations-section').hidden = !variationsList.length; | |
| 13 $('variations-list').appendChild( | |
| 14 parseHtmlSubset(variationsList.join('<br>'), ['BR'])); | |
| 15 } | |
| 16 | |
| 17 | |
| 18 /* All the work we do onload. */ | |
| 19 function onLoadWork() { | |
| 20 chrome.send('requestVersionInfo'); | |
| 21 } | |
| 22 | |
| 23 document.addEventListener('DOMContentLoaded', onLoadWork); | |
| OLD | NEW |