Skip to content

Commit 5467f6b

Browse files
committed
Remove debug data-reported-size attribute
1 parent c1f5bb1 commit 5467f6b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ function getFormattedGif(gif) {
382382
height={height}
383383
style={{ 'background-color': hsl }}
384384
data-full-size-url={fullSizeUrl}
385-
data-reported-size={hd.gif.url === fullSizeUrl ? hd.gif.size : md.gif.url === fullSizeUrl ? md.gif.size : sm.gif.url === fullSizeUrl ? sm.gif.size : xs.gif.size}
386385
class="ghg-gif-selection"
387386
/>
388387
</div>
@@ -454,7 +453,7 @@ async function selectGif(event) {
454453
const form = event.target.closest('.ghg-has-gif-field');
455454
const trigger = select('.ghg-trigger', form);
456455
const gifUrl = event.target.dataset.fullSizeUrl;
457-
debugLog(`Inserting GIF: ${gifUrl} (reported size: ${event.target.dataset.reportedSize} bytes)`);
456+
debugLog(`Inserting GIF: ${gifUrl}`);
458457

459458
// Use the same comprehensive set of selectors we use when finding the textarea
460459
const textArea = form.querySelector([

0 commit comments

Comments
 (0)