From 3fd7dff26492e8c746479813e3c4e7f24210f324 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 9 Feb 2016 15:07:57 +0000 Subject: [PATCH] unbreak safari --- src/Tinter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tinter.js b/src/Tinter.js index f08bdd7297..b258930425 100644 --- a/src/Tinter.js +++ b/src/Tinter.js @@ -76,6 +76,7 @@ var cached = false; function calcCssFixups() { for (var i = 0; i < document.styleSheets.length; i++) { var ss = document.styleSheets[i]; + if (!ss) continue; // well done safari >:( // Chromium apparently sometimes returns null here; unsure why. // see $14534907369972FRXBx:matrix.org in HQ // ...ah, it's because there's a third party extension like