about summary refs log tree commit diff
path: root/third_party/gerrit/0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch
blob: 03b24b84faca949a6054e5cdfeffb3f416b03ab5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From dfa0d782edb6b2d789f71a2462ba93e6101b5e4e 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 c8e9baa98c..9438504bd8 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.29.2