OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 | 6 |
7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
8 | 8 |
9 // | 9 // |
10 // AdvancedOptions class | 10 // AdvancedOptions class |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 $('remotingStopButton').style.display = 'inline'; | 254 $('remotingStopButton').style.display = 'inline'; |
255 } else { | 255 } else { |
256 $('remotingSetupButton').style.display = 'inline'; | 256 $('remotingSetupButton').style.display = 'inline'; |
257 $('remotingStopButton').style.display = 'none'; | 257 $('remotingStopButton').style.display = 'none'; |
258 } | 258 } |
259 $('remotingStatus').textContent = status; | 259 $('remotingStatus').textContent = status; |
260 }; | 260 }; |
261 | 261 |
262 AdvancedOptions.RemoveRemotingSection = function() { | 262 AdvancedOptions.RemoveRemotingSection = function() { |
263 var proxySectionElm = $('remoting-section'); | 263 var proxySectionElm = $('remoting-section'); |
264 proxySectionElm.parentNode.removeChild(proxySectionElm); | 264 if (proxySectionElm) |
| 265 proxySectionElm.parentNode.removeChild(proxySectionElm); |
265 }; | 266 }; |
266 | 267 |
267 // Export | 268 // Export |
268 return { | 269 return { |
269 AdvancedOptions: AdvancedOptions | 270 AdvancedOptions: AdvancedOptions |
270 }; | 271 }; |
271 | 272 |
272 }); | 273 }); |
OLD | NEW |