Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lessons
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Statistics
lessons
Commits
06dc755f
Commit
06dc755f
authored
Dec 13, 2018
by
ROBERT PATRICK CAREY III
🗿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FFF
parent
1808a0c5
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/user_preferences/js/dist/user-preferences.js
modules/user_preferences/js/dist/user-preferences.js
+1
-1
modules/user_preferences/js/src/user-preferences.js
modules/user_preferences/js/src/user-preferences.js
+7
-4
No files found.
modules/user_preferences/js/dist/user-preferences.js
View file @
06dc755f
This diff is collapsed.
Click to expand it.
modules/user_preferences/js/src/user-preferences.js
View file @
06dc755f
...
...
@@ -75,11 +75,14 @@ const userPreferences = ({
fetchFontFace
(
params
){
let
FontFaceObserver
=
require
(
'
fontfaceobserver
'
);
let
fontFace
=
new
FontFaceObserver
(
params
.
name
);
let
font
=
new
FontFace
(
params
.
name
,
"
url(
"
+
params
.
url
+
"
)
"
);
fontFace
.
load
().
then
(
function
()
{
document
.
fonts
.
add
(
font
);
});
if
(
typeof
FontFace
!==
"
undefined
"
){
let
font
=
new
FontFace
(
params
.
name
,
"
url(
"
+
params
.
url
+
"
)
"
);
fontFace
.
load
().
then
(
function
()
{
document
.
fonts
.
add
(
font
);
});
}
},
setViewingMode
(
mode
)
{
mode
=
mode
?
mode
:
defaults
.
viewingMode
;
...
...
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