Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit 8c26a87

Browse files
committed
Revert "Don't use emoji png from internet"
This reverts commit 7483ad2. The emoji png is too large and increases our binary size a lot.
1 parent 931499f commit 8c26a87

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

lib/view/chat-box.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,11 @@ handlebars.registerHelper('fontStyle', function() {
356356
return fontStyle
357357
})
358358

359-
// Path to the emoji png.
360-
const emojiPng = fs.realpathSync(path.resolve(__dirname, 'chat', 'sheet_apple_64_indexed_256.png'))
361-
362359
// Register wey:// protocol to work around CROS problem with file:// protocol.
363360
gui.Browser.registerProtocol('wey', (u) => {
364361
const r = url.parse(u)
365362
if (r.host !== 'file')
366363
return gui.ProtocolStringJob.create('text/plain', 'Unsupported type')
367-
if (r.path == '/emoji.png')
368-
return gui.ProtocolFileJob.create(emojiPng)
369364
const query = querystring.parse(r.query)
370365
return gui.ProtocolFileJob.create(query.path)
371366
})

lib/view/chat/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
vertical-align: middle;
8282
}
8383
.apple.emoji {
84-
background-image: url(wey://file/emoji.png);
84+
background-image: url(https://a.slack-edge.com/c00d19/img/emoji_2017_12_06/sheet_apple_64_indexed_256.png);
8585
background-size: 5200% 5200%;
8686
}
8787
.custom.emoji {
-3.18 MB
Binary file not shown.

0 commit comments

Comments
 (0)