| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** | 5 /** |
| 6 * Alias for document.getElementById. | 6 * Alias for document.getElementById. |
| 7 * | 7 * |
| 8 * @param {string} id | 8 * @param {string} id |
| 9 * @return {Element} | 9 * @return {Element} |
| 10 */ | 10 */ |
| 11 let $ = function(id) { | 11 let $ = function(id) { |
| 12 // eslint-disable-next-line no-restricted-properties |
| 12 return document.getElementById(id); | 13 return document.getElementById(id); |
| 13 }; | 14 }; |
| 14 | 15 |
| 15 /** | 16 /** |
| 16 * Class to manage the options page. | 17 * Class to manage the options page. |
| 17 * | 18 * |
| 18 * @constructor | 19 * @constructor |
| 19 */ | 20 */ |
| 20 function SwitchAccessOptions() { | 21 function SwitchAccessOptions() { |
| 21 let background = chrome.extension.getBackgroundPage(); | 22 let background = chrome.extension.getBackgroundPage(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 $(key).value = updatedPrefs[key] / 1000; | 104 $(key).value = updatedPrefs[key] / 1000; |
| 104 break; | 105 break; |
| 105 } | 106 } |
| 106 } | 107 } |
| 107 } | 108 } |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 document.addEventListener('DOMContentLoaded', function() { | 111 document.addEventListener('DOMContentLoaded', function() { |
| 111 new SwitchAccessOptions(); | 112 new SwitchAccessOptions(); |
| 112 }); | 113 }); |
| OLD | NEW |