diff options
author | Luke Granger-Brown <hg@lukegb.com> | 2020-07-11T00·48+0000 |
---|---|---|
committer | lukegb <lukegb@tvl.fyi> | 2020-07-11T00·57+0000 |
commit | b65575fc31fd9326db7989eb8a9b15439dd8866e (patch) | |
tree | 149984954f43391c238e6b30e4cce83982f1b417 /third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch | |
parent | 9eb248e0c5f75eef5da2d80363462337aba99f44 (diff) |
fix(gerrit): Load fonts from Google Fonts instead. r/1252
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>
Diffstat (limited to 'third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch')
-rw-r--r-- | third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch b/third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch new file mode 100644 index 000000000000..742411a575e6 --- /dev/null +++ b/third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch @@ -0,0 +1,26 @@ +From f3e91155c990ee7e329be8ad799e5bddfc26434e Mon Sep 17 00:00:00 2001 +From: Luke Granger-Brown <git@lukegb.com> +Date: Sat, 11 Jul 2020 00:45:57 +0000 +Subject: [PATCH 5/6] When using local fonts, always assume Gerrit is mounted + at the root. + +--- + polygerrit-ui/app/rollup.config.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/polygerrit-ui/app/rollup.config.js b/polygerrit-ui/app/rollup.config.js +index d83f24fb25..adf573c1ab 100644 +--- a/polygerrit-ui/app/rollup.config.js ++++ b/polygerrit-ui/app/rollup.config.js +@@ -50,7 +50,7 @@ const importLocalFontMetaUrlResolver = function() { + name: 'import-meta-url-resolver', + resolveImportMeta: function (property, data) { + if(property === 'url' && data.moduleId.endsWith('/@polymer/font-roboto-local/roboto.js')) { +- return 'new URL("..", document.baseURI).href'; ++ return 'new URL("/", document.baseURI).href'; + } + return null; + } +-- +2.27.0 + |