summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm20
1 files changed, 11 insertions, 9 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index f8a4bdbac..40262187b 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -513,15 +513,17 @@ sub header {
);
$self->{_header_done} = 1;
- my @fonts = (
- "skins/standard/fonts/FiraMono-Regular.woff2?v=3.202",
- "skins/standard/fonts/FiraSans-Bold.woff2?v=4.203",
- "skins/standard/fonts/FiraSans-Italic.woff2?v=4.203",
- "skins/standard/fonts/FiraSans-Regular.woff2?v=4.203",
- "skins/standard/fonts/FiraSans-SemiBold.woff2?v=4.203",
- "skins/standard/fonts/MaterialIcons-Regular.woff2",
- );
- $headers{'-link'} = join(", ", map { sprintf('</static/v%s/%s>; rel="preload"; as="font"', Bugzilla->VERSION, $_) } @fonts);
+ if (Bugzilla->usage_mode == USAGE_MODE_BROWSER) {
+ my @fonts = (
+ "skins/standard/fonts/FiraMono-Regular.woff2?v=3.202",
+ "skins/standard/fonts/FiraSans-Bold.woff2?v=4.203",
+ "skins/standard/fonts/FiraSans-Italic.woff2?v=4.203",
+ "skins/standard/fonts/FiraSans-Regular.woff2?v=4.203",
+ "skins/standard/fonts/FiraSans-SemiBold.woff2?v=4.203",
+ "skins/standard/fonts/MaterialIcons-Regular.woff2",
+ );
+ $headers{'-link'} = join(", ", map { sprintf('</static/v%s/%s>; rel="preload"; as="font"', Bugzilla->VERSION, $_) } @fonts);
+ }
return $self->SUPER::header(%headers) || "";
}