| OLD | NEW |
| 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 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 <polymer-element name="cr-title-handler" attributes="titlePrefix titleSuffix"> | 5 <polymer-element name="cr-title-handler" attributes="titlePrefix titleSuffix"> |
| 6 <template> | 6 <template> |
| 7 <style> | 7 <style> |
| 8 :host { display: none; } | 8 :host { display: none; } |
| 9 </style> | 9 </style> |
| 10 </template> | 10 </template> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 title += ": "; | 28 title += ": "; |
| 29 if (value.length) | 29 if (value.length) |
| 30 title += value; | 30 title += value; |
| 31 if (this.titleSuffix) | 31 if (this.titleSuffix) |
| 32 title += " - " + this.titleSuffix; | 32 title += " - " + this.titleSuffix; |
| 33 document.title = title; | 33 document.title = title; |
| 34 }, | 34 }, |
| 35 }); | 35 }); |
| 36 </script> | 36 </script> |
| 37 </polymer-element> | 37 </polymer-element> |
| OLD | NEW |