You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Null check stylesheet href
As commented Fixes https://github.com/vector-im/riot-web/issues/6489
This commit is contained in:
@@ -326,7 +326,9 @@ class Tinter {
|
|||||||
// Vector Green as any other colour.
|
// Vector Green as any other colour.
|
||||||
// --matthew
|
// --matthew
|
||||||
|
|
||||||
if (ss.href && !ss.href.match(new RegExp('/theme-' + this.theme + '.css$'))) continue;
|
// stylesheets we don't have permission to access (eg. ones from extensions) have a null
|
||||||
|
// href and will throw exceptions if we try to access their rules.
|
||||||
|
if (!ss.href || !ss.href.match(new RegExp('/theme-' + this.theme + '.css$'))) continue;
|
||||||
if (ss.disabled) continue;
|
if (ss.disabled) continue;
|
||||||
if (!ss.cssRules) continue;
|
if (!ss.cssRules) continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user