Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f027c33c
Commit
f027c33c
authored
Aug 20, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Crossorgin attribute rendering added
parent
9e5a4cbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
app/views/layouts/_loading_hints.html.haml
app/views/layouts/_loading_hints.html.haml
+3
-6
No files found.
app/views/layouts/_loading_hints.html.haml
View file @
f027c33c
-
if
ActionController
::
Base
.
asset_host
%link
{
rel:
'dns-prefetch'
,
href:
ActionController
::
Base
.
asset_host
}
%link
{
rel:
'preconnect'
,
href:
ActionController
::
Base
.
asset_host
,
crossorigin:
''
}
-
if
user_application_theme
==
'gl-dark'
%link
{
rel:
'preload'
,
href:
=
stylesheet_url
'application_dark'
,
as:
'style'
}
%link
{
{
rel:
'preload'
,
href:
stylesheet_url
(
'application_dark'
),
as:
'style'
},
ActionController
::
Base
.
asset_host
?
{
crossorigin:
''
}
:
{}
}
-
else
%link
{
rel:
'preload'
,
href:
=
stylesheet_url
'application'
,
as:
'style'
}
%link
{
rel:
'preload'
,
href:
=
stylesheet_url
"highlight/themes/#{user_color_scheme}"
,
as:
'style'
}
%link
{
{
rel:
'preload'
,
href:
stylesheet_url
(
'application'
),
as:
'style'
},
ActionController
::
Base
.
asset_host
?
{
crossorigin:
''
}
:
{}
}
%link
{
{
rel:
'preload'
,
href:
stylesheet_url
(
"highlight/themes/#{user_color_scheme}"
),
as:
'style'
},
ActionController
::
Base
.
asset_host
?
{
crossorigin:
''
}
:
{}
}
-
if
Gitlab
::
CurrentSettings
.
snowplow_enabled?
&&
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
%link
{
rel:
'preconnect'
,
href:
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
,
crossorigin:
''
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment