fix(gerrit): Load fonts from Google Fonts instead.
This also incidentally includes a fix for _not_ loading fonts from Google Fonts, but I don't really care about that. Change-Id: I6e00791d0ba06cb1e3c029e1b8617c33000d2ab1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1041 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
9eb248e0c5
commit
b65575fc31
7 changed files with 68 additions and 12 deletions
28
third_party/gerrit/0006-Always-use-Google-Fonts.patch
vendored
Normal file
28
third_party/gerrit/0006-Always-use-Google-Fonts.patch
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
From 3b757716417b1b8d5326e952133d986ec160a048 Mon Sep 17 00:00:00 2001
|
||||
From: Luke Granger-Brown <git@lukegb.com>
|
||||
Date: Sat, 11 Jul 2020 00:46:13 +0000
|
||||
Subject: [PATCH 6/6] Always use Google Fonts.
|
||||
|
||||
We're not a corporate, and we're not behind the GFW. Always use Google Fonts,
|
||||
because even though we no longer get the caching benefits (boo, browsers),
|
||||
it is still a better geographically-distributed CDN.
|
||||
---
|
||||
java/com/google/gerrit/httpd/raw/IndexHtmlUtil.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/java/com/google/gerrit/httpd/raw/IndexHtmlUtil.java b/java/com/google/gerrit/httpd/raw/IndexHtmlUtil.java
|
||||
index d5f43de025..9c68a1d327 100644
|
||||
--- a/java/com/google/gerrit/httpd/raw/IndexHtmlUtil.java
|
||||
+++ b/java/com/google/gerrit/httpd/raw/IndexHtmlUtil.java
|
||||
@@ -231,7 +231,7 @@ public class IndexHtmlUtil {
|
||||
if (urlParameterMap.containsKey("ce")) {
|
||||
data.put("polyfillCE", "true");
|
||||
}
|
||||
- if (urlParameterMap.containsKey("gf")) {
|
||||
+ if (/* urlParameterMap.containsKey("gf") || */ true) {
|
||||
data.put("useGoogleFonts", "true");
|
||||
}
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue