Skip to content

Commit

Permalink
fix: github assets url (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
louislivi authored and QingWei-Li committed Feb 21, 2019
1 parent dfd31b5 commit 140bf10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/render/emojify.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {inBrowser} from '../util/env'

function replace(m, $1) {
return '<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/' + $1 + '.png" alt="' + $1 + '" />'
return '<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/' + $1 + '.png" alt="' + $1 + '" />'
}

export function emojify(text) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ const AllGithubEmoji = [
window.emojify = function (match, $1) {
return AllGithubEmoji.indexOf($1) === -1 ?
match :
'<img class="emoji" src="https://assets-cdn.github.com/images/icons/emoji/' +
'<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/' +
$1 +
'.png" alt="' +
$1 +
Expand Down

0 comments on commit 140bf10

Please sign in to comment.