diff options
Diffstat (limited to 'client/src/app/core/theme')
-rw-r--r-- | client/src/app/core/theme/theme.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.ts index c35548798..c9e6fa700 100644 --- a/client/src/app/core/theme/theme.service.ts +++ b/client/src/app/core/theme/theme.service.ts | |||
@@ -95,8 +95,8 @@ export class ThemeService { | |||
95 | private loadTheme (name: string) { | 95 | private loadTheme (name: string) { |
96 | const links = document.getElementsByTagName('link') | 96 | const links = document.getElementsByTagName('link') |
97 | for (let i = 0; i < links.length; i++) { | 97 | for (let i = 0; i < links.length; i++) { |
98 | const link = links[ i ] | 98 | const link = links[i] |
99 | if (link.getAttribute('rel').indexOf('style') !== -1 && link.getAttribute('title')) { | 99 | if (link.getAttribute('rel').includes('style') && link.getAttribute('title')) { |
100 | link.disabled = link.getAttribute('title') !== name | 100 | link.disabled = link.getAttribute('title') !== name |
101 | } | 101 | } |
102 | } | 102 | } |