Browse Source

Rename emoji sheet to avoid caching issue (#7777)

pull/4/head
Renato "Lond" Cerqueira 3 years ago
committed by Eugen Rochko
parent
commit
268d90e810
3 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
  2. +1
    -1
      config/webpack/production.js
  3. +0
    -0
      public/emoji/sheet_10.png

+ 1
- 1
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js View File

@ -28,7 +28,7 @@ const messages = defineMessages({
const assetHost = process.env.CDN_HOST || '';
let EmojiPicker, Emoji; // load asynchronously
const backgroundImageFn = () => `${assetHost}/emoji/sheet.png`;
const backgroundImageFn = () => `${assetHost}/emoji/sheet_10.png`;
const listenerOptions = detectPassiveEvents.hasSupport ? { passive: true } : false;
const categoriesSort = [

+ 1
- 1
config/webpack/production.js View File

@ -92,7 +92,7 @@ module.exports = merge(sharedConfig, {
},
externals: [
'/emoji/1f602.svg', // used for emoji picker dropdown
'/emoji/sheet.png', // used in emoji-mart
'/emoji/sheet_10.png', // used in emoji-mart
],
excludes: [
'**/*.gz',

public/emoji/sheet.png → public/emoji/sheet_10.png View File


Loading…
Cancel
Save