8000 Remove host workaround for emoji URLs by rhysd · Pull Request #94 · imfunniee/gitfolio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Remove host workaround for emoji URLs #94

Merged
merged 1 commit into from
Sep 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"commander": "^2.20.0",
"ejs": "^2.6.2",
"express": "^4.17.0",
"github-emoji": "^1.1.0",
"github-emoji": "^1.1.1",
"got": "^9.6.0",
"handlebars": "^4.1.2",
"jsdom": "^15.1.0",
Expand Down
7 changes: 1 addition & 6 deletions populate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,9 @@ function convertToEmoji(text) {
});
for (i = 0; i < str.length; i++) {
if (emoji.URLS[str[i]] != undefined) {
var output = emoji.of(str[i]);
var emojiImage = output.url.replace(
"assets-cdn.github",
"github.githubassets"
);
text = text.replace(
`:${str[i]}:`,
`<img src="${emojiImage}" class="emoji">`
`<img src="${emoji.URLS[str[i]]}" class="emoji">`
);
}
}
Expand Down
0