ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix external theme switching
Chocobozzzc40062189b65
diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.tsindex 0f7ab27800..947d91f651 100644--- a/client/src/app/core/theme/theme.service.ts+++ b/client/src/app/core/theme/theme.service.ts@@ -127,10 +127,17 @@ export class ThemeService {private loadThemeStyle (name: string) {const links = document.getElementsByTagName('link')+for (let i = 0; i < links.length; i++) {const link = links[i]if (link.getAttribute('rel').includes('style') && link.getAttribute('title')) {link.disabled = link.getAttribute('title') !== name++ if (!link.disabled) {+ link.onload = () => this.injectColorPalette()+ } else {+ link.onload = undefined+ }}}