| 178 | | var cssNode = document.createElement('link'); |
|---|
| 179 | | cssNode.setAttribute('rel', 'stylesheet'); |
|---|
| 180 | | cssNode.setAttribute('type', 'text/css'); |
|---|
| 181 | | cssNode.setAttribute('href', this.theme); |
|---|
| 182 | | document.getElementsByTagName('head')[0].appendChild(cssNode); |
|---|
| | 178 | // only append link stylesheet if the theme property is set |
|---|
| | 179 | if(this.theme) { |
|---|
| | 180 | var cssNode = document.createElement('link'); |
|---|
| | 181 | cssNode.setAttribute('rel', 'stylesheet'); |
|---|
| | 182 | cssNode.setAttribute('type', 'text/css'); |
|---|
| | 183 | cssNode.setAttribute('href', this.theme); |
|---|
| | 184 | document.getElementsByTagName('head')[0].appendChild(cssNode); |
|---|
| | 185 | } |
|---|