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
72bb051e
Commit
72bb051e
authored
Oct 13, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deactivates Emoji Map Creation for Bots + Crawlers
Fixed Prettifying of emoji bot check
parent
803d87fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
app/assets/javascripts/emoji/support/index.js
app/assets/javascripts/emoji/support/index.js
+8
-0
No files found.
app/assets/javascripts/emoji/support/index.js
View file @
72bb051e
...
...
@@ -5,6 +5,14 @@ import getUnicodeSupportMap from './unicode_support_map';
let
browserUnicodeSupportMap
;
export
default
function
isEmojiUnicodeSupportedByBrowser
(
emojiUnicode
,
unicodeVersion
)
{
// Skipping the map creation for Bots + RSPec
if
(
navigator
.
userAgent
.
indexOf
(
'
HeadlessChrome
'
)
>
-
1
||
navigator
.
userAgent
.
indexOf
(
'
Lighthouse
'
)
>
-
1
||
navigator
.
userAgent
.
indexOf
(
'
Speedindex
'
)
>
-
1
)
{
return
true
;
}
browserUnicodeSupportMap
=
browserUnicodeSupportMap
||
getUnicodeSupportMap
();
return
isEmojiUnicodeSupported
(
browserUnicodeSupportMap
,
emojiUnicode
,
unicodeVersion
);
}
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