OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 cr.define('taskbarpin', function() { |
| 6 'use strict'; |
| 7 |
| 8 function injectLocalizedStrings() { |
| 9 $('section-steps--right-click').innerHTML = |
| 10 loadTimeData.getString('rightClickText'); |
| 11 $('section-steps--pin-taskbar').innerHTML = |
| 12 loadTimeData.getString('pinInstructionText'); |
| 13 } |
| 14 |
| 15 function initialize() { |
| 16 injectLocalizedStrings(); |
| 17 } |
| 18 |
| 19 return { |
| 20 initialize: initialize |
| 21 }; |
| 22 }); |
| 23 |
| 24 document.addEventListener('DOMContentLoaded', taskbarpin.initialize); |
OLD | NEW |