2021-08-28 13:31:58 +02:00
|
|
|
From bd7db44cabb6de64f03adbaf5e24c73e022a8932 Mon Sep 17 00:00:00 2001
|
2020-07-11 02:48:54 +02:00
|
|
|
From: Luke Granger-Brown <git@lukegb.com>
|
|
|
|
Date: Sat, 11 Jul 2020 00:45:57 +0000
|
2021-04-06 11:27:20 +02:00
|
|
|
Subject: [PATCH 5/7] When using local fonts, always assume Gerrit is mounted
|
2020-07-11 02:48:54 +02:00
|
|
|
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
|
2021-04-06 11:27:20 +02:00
|
|
|
index d93b5eab39..c862c9bbae 100644
|
2020-07-11 02:48:54 +02:00
|
|
|
--- 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;
|
|
|
|
}
|
|
|
|
--
|
2021-08-28 13:31:58 +02:00
|
|
|
2.32.0
|
2020-07-11 02:48:54 +02:00
|
|
|
|