Chromium Code Reviews| Index: chrome/browser/resources/new_new_tab.js |
| diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js |
| index b7e292accaabe82acb0f1b501a652d6a1f1ce26e..768219d49724458e954624274906d58f4f601ceb 100644 |
| --- a/chrome/browser/resources/new_new_tab.js |
| +++ b/chrome/browser/resources/new_new_tab.js |
| @@ -1095,3 +1095,11 @@ function maybeDoneLoading() { |
| function isDoneLoading() { |
| return !document.body.classList.contains('loading'); |
| } |
| + |
|
Bons
2010/10/06 20:04:06
remove extra line (I don't see any other instances
|
| + |
| +// Initialize the apps promo if necessary. |
| +document.addEventListener('DOMContentLoaded', function() { |
| + var promoText1 = $('apps-promo-text1'); |
| + promoText1.innerHTML = promoText1.textContent; |
|
arv (Not doing code reviews)
2010/10/06 20:48:36
You can do this using the template system
<p id="
|
| + promoText1.querySelector('a').href = localStrings.getString('web_store_url'); |
| +}); |